diff options
Diffstat (limited to 'binutils-2.21/ld/testsuite/ld-scripts/phdrs2.t')
-rw-r--r-- | binutils-2.21/ld/testsuite/ld-scripts/phdrs2.t | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/binutils-2.21/ld/testsuite/ld-scripts/phdrs2.t b/binutils-2.21/ld/testsuite/ld-scripts/phdrs2.t new file mode 100644 index 0000000..bccbcec --- /dev/null +++ b/binutils-2.21/ld/testsuite/ld-scripts/phdrs2.t @@ -0,0 +1,23 @@ +PHDRS +{ + Foo PT_LOAD ; + Bar PT_LOAD ; +} + +SECTIONS +{ + . = 0x800000 - 1; + /* The PHDRS generated should start at the aligned .foo section + address, not the unaligned .empty section address */ + .empty : { + EMPTY_START = ABSOLUTE(.) ; + *(.empty) + EMPTY_END = ABSOLUTE(.) ; + } : Foo + .foo : { *(.foo) } : Foo + .bar : { *(.bar) + LONG(EMPTY_START) ; + } : Bar + + /DISCARD/ : { *(.*) } +} |