Do not include empty sections in loadable segments.
[deliverable/binutils-gdb.git] / ld / testsuite / ld-scripts / phdrs2.t
CommitLineData
1ed89aa9
NC
1PHDRS
2{
3 text PT_LOAD ;
4 data PT_LOAD ;
5}
6
7SECTIONS
8{
9 . = 0x800000 - 1;
10 /* The PHDRS generated should start at the aligned .text section
11 address, not the unaligned .empty section address */
12 .empty : {
13 EMPTY_START = ABSOLUTE(.) ;
14 *(.empty)
15 EMPTY_END = ABSOLUTE(.) ;
16 } : text
17 .text : { *(.text) } :text
18 .data : { *(.data)
19 LONG(EMPTY_START) ;
20 } :data
21
22 /DISCARD/ : { *(.*) }
23}
This page took 0.024875 seconds and 4 git commands to generate.