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

17 lines
331 B
Perl
Raw Normal View History

1999-05-03 15:29:11 +08:00
PHDRS
{
header PT_PHDR PHDRS ;
text PT_LOAD FILEHDR PHDRS ;
data PT_LOAD ;
}
SECTIONS
{
/* This test will fail on architectures where the startaddress below
is less than the constant MAXPAGESIZE. */
. = 0x800000 + SIZEOF_HEADERS;
1999-05-03 15:29:11 +08:00
.text : { *(.text) } :text
.data : { *(.data) } :data
2000-03-14 09:40:30 +08:00
/DISCARD/ : { *(.*) }
1999-05-03 15:29:11 +08:00
}