binutils-gdb/ld/testsuite/ld-scripts/phdrs2.t

24 lines
394 B
Perl
Raw Normal View History

PHDRS
{
2002-06-07 18:30:56 +08:00
Foo PT_LOAD ;
Bar PT_LOAD ;
}
SECTIONS
{
. = 0x800000 - 1;
2002-06-07 18:30:56 +08:00
/* 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(.) ;
2002-06-07 18:30:56 +08:00
} : Foo
.foo : { *(.foo) } : Foo
.bar : { *(.bar)
LONG(EMPTY_START) ;
2002-06-07 18:30:56 +08:00
} : Bar
/DISCARD/ : { *(.*) }
}