phdrs2.t 394 B

1234567891011121314151617181920212223
  1. PHDRS
  2. {
  3. Foo PT_LOAD ;
  4. Bar PT_LOAD ;
  5. }
  6. SECTIONS
  7. {
  8. . = 0x800000 - 1;
  9. /* The PHDRS generated should start at the aligned .foo section
  10. address, not the unaligned .empty section address */
  11. .empty : {
  12. EMPTY_START = ABSOLUTE(.) ;
  13. *(.empty)
  14. EMPTY_END = ABSOLUTE(.) ;
  15. } : Foo
  16. .foo : { *(.foo) } : Foo
  17. .bar : { *(.bar)
  18. LONG(EMPTY_START) ;
  19. } : Bar
  20. /DISCARD/ : { *(.*) }
  21. }