Advertisement
MichaelPetch

SO78937472 link.ld

Sep 2nd, 2024 (edited)
44
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.60 KB | None | 0 0
  1. OUTPUT_FORMAT("elf32-i386");
  2. ENTRY(_start);
  3. SECTIONS
  4. {
  5. . = 0x7C00;
  6. .boottext : AT(0x7C00) SUBALIGN(0) {
  7. build/obj/boot.o(.text*);
  8. }
  9. .bootdata : SUBALIGN(0) {
  10. build/obj/boot.o(.rodata*);
  11. build/obj/boot.o(.data);
  12. }
  13.  
  14. .text : SUBALIGN(16) {
  15. *(.text*);
  16. }
  17. .data : SUBALIGN(16) {
  18. *(.data);
  19. }
  20. .rodata : SUBALIGN(16) {
  21. *(.rodata*);
  22. }
  23. .bss : SUBALIGN(16) {
  24. *(.COMMON);
  25. *(.bss)
  26. }
  27.  
  28. /DISCARD/ : {
  29. *(.eh_frame);
  30. *(.comment);
  31. *(.note.gnu.build-id);
  32. }
  33. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement