Advertisement
Guest User

Untitled

a guest
Jul 30th, 2022
54
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.03 KB | None | 0 0
  1. LINKER.LD:
  2.  
  3. ENTRY(start)
  4.  
  5. SECTIONS
  6. {
  7. . = 1M;
  8.  
  9. .boot :
  10. {
  11. KEEP(*(.multiboot_header))
  12. }
  13.  
  14. .text :
  15. {
  16. *(.text)
  17. }
  18. }
  19.  
  20. objdump -D kernel/kernel.bin
  21.  
  22. kernel/kernel.bin: file format elf64-x86-64
  23.  
  24.  
  25. Disassembly of section .boot:
  26.  
  27. 0000000000100000 <header_start>:
  28. 100000: d6 (bad)
  29. 100001: 50 push %rax
  30. 100002: 52 push %rdx
  31. 100003: e8 00 00 00 00 call 100008 <header_start+0x8>
  32. 100008: 18 00 sbb %al,(%rax)
  33. 10000a: 00 00 add %al,(%rax)
  34. 10000c: 12 af ad 17 00 00 adc 0x17ad(%rdi),%ch
  35. 100012: 00 00 add %al,(%rax)
  36. 100014: 08 00 or %al,(%rax)
  37. ...
  38.  
  39. Disassembly of section .text:
  40.  
  41. 0000000000100000 <start>:
  42. 100000: c7 05 00 80 0b 00 4f movl $0x2f4b2f4f,0xb8000(%rip) # 1b800a <header_end+0xb7ff2>
  43. 100007: 2f 4b 2f
  44. 10000a: f4
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement