Advertisement
MichaelPetch

link.ld so73482770

Aug 29th, 2022
233
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.41 KB | None | 0 0
  1. OUTPUT_FORMAT(elf64-x86-64)
  2.  
  3. phys = 0x5000;
  4.  
  5. SECTIONS
  6. {
  7. .text phys : AT(phys) {
  8. code = .;
  9. *(.text)
  10. *(.rodata)
  11. . = ALIGN(4096);
  12. }
  13.  
  14. .data : AT(phys + (data - code))
  15. {
  16. data = .;
  17. *(.data)
  18. . = ALIGN(4096);
  19. }
  20.  
  21. .bss : AT(phys + (bss - code)) {
  22. bss = .;
  23. *(.bss)
  24. . = ALIGN(4096);
  25. }
  26.  
  27. end = .;
  28.  
  29. /DISCARD/ : {
  30. *(.comment)
  31. *(.eh_frame)
  32. *(.note.gnu.build-id)
  33. }
  34. }
  35.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement