orphan-9.ld 793 B

1234567891011121314151617181920212223242526272829303132
  1. /* This linker script is used for orphan-9 and orphan-10 test.
  2. orphan-9: We have a single byte in .data, and an orphan .data.1
  3. section. We are checking that the .data.1 orphan is assigned an
  4. LMA after .data rather than picking up the lma region of .rodata.
  5. orphan-10: In this case we have nothing in .data and an orphan
  6. .data.1, we are checking that .data.1 is assigned an LMA after
  7. .data, rather than defaulting to take LMA == VMA. */
  8. MEMORY
  9. {
  10. MEM : ORIGIN = 0x1000, LENGTH = 0x100
  11. TEXT : ORIGIN = 0x200, LENGTH = 0x50
  12. DATA : ORIGIN = 0x300, LENGTH = 0x50
  13. RODATA : ORIGIN = 0x400, LENGTH = 0x50
  14. }
  15. SECTIONS
  16. {
  17. .text : {
  18. *(.text)
  19. } >MEM AT>TEXT
  20. .data : AT(0x300) {
  21. *(.data)
  22. } >MEM
  23. .rodata : {
  24. *(.rodata)
  25. } >MEM AT>RODATA
  26. }