]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - ld/testsuite/ld-scripts/phdrs2.t
2.41 Release sources
[thirdparty/binutils-gdb.git] / ld / testsuite / ld-scripts / phdrs2.t
CommitLineData
1ed89aa9
NC
1PHDRS
2{
1634475f
NC
3 Foo PT_LOAD ;
4 Bar PT_LOAD ;
1ed89aa9
NC
5}
6
7SECTIONS
8{
9 . = 0x800000 - 1;
1634475f 10 /* The PHDRS generated should start at the aligned .foo section
1ed89aa9
NC
11 address, not the unaligned .empty section address */
12 .empty : {
13 EMPTY_START = ABSOLUTE(.) ;
14 *(.empty)
15 EMPTY_END = ABSOLUTE(.) ;
1634475f
NC
16 } : Foo
17 .foo : { *(.foo) } : Foo
18 .bar : { *(.bar)
1ed89aa9 19 LONG(EMPTY_START) ;
1634475f 20 } : Bar
1ed89aa9 21
675b9d61 22 /DISCARD/ : { *(.*) }
1ed89aa9 23}