non-contiguous-powerpc.ld 597 B

12345678910111213141516171819202122
  1. /* Distance between 'one' and 'two' means that relaxation implies that
  2. .text.one's size increases. Even though the result would fit in
  3. 'oneandhalf', this is not supported by
  4. --enable-non-contiguous-regions. */
  5. MEMORY {
  6. one (RXAI) : ORIGIN = 0x00000000, LENGTH = 0x00000010
  7. oneandhalf (RXAI) : ORIGIN = 0x00001000, LENGTH = 0x00001010
  8. two (RXAI) : ORIGIN = 0x20000000, LENGTH = 0x10000000
  9. }
  10. SECTIONS {
  11. one : {
  12. *(.text.one)
  13. } > one
  14. oneandhalf : {
  15. *(.text.one)
  16. } > oneandhalf
  17. two : {
  18. *(.text.two)
  19. } > two
  20. }