Guest User

link.ld

a guest
Jul 20th, 2023
47
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.80 KB | None | 0 0
  1. ENTRY(loader) /* the name of the entry label */
  2.  
  3. SECTIONS {
  4. . = 0x00100000; /* the code should be loaded at 1 MB */
  5.  
  6. .__mbHeader : {
  7. *(.__mbHeader)
  8. }
  9.  
  10. .text ALIGN (0x1000) : /* align at 4 KB */
  11. {
  12. *(.text) /* all text sections from all files */
  13. }
  14.  
  15. .rodata ALIGN (0x1000) : /* align at 4 KB */
  16. {
  17. *(.rodata*) /* all read-only data sections from all files */
  18. }
  19.  
  20. .data ALIGN (0x1000) : /* align at 4 KB */
  21. {
  22. *(.data) /* all data sections from all files */
  23. }
  24.  
  25. .bss ALIGN (0x1000) : /* align at 4 KB */
  26. {
  27. *(COMMON) /* all COMMON sections from all files */
  28. *(.bss) /* all bss sections from all files */
  29. }
  30. }
Add Comment
Please, Sign In to add comment