5c1a3f0fa7
* ldlang.c (lang_new_phdr): Check PHDRS and FILEHDR in loadable segments do not appear after a different loadable segment. * ld.texinfo (PHDRS): Document order of processing segments. Document where PHDRS and FILEHDR may appear. ld/testsuite/ * ld-scripts/phdrs3.d: New. * ld-scripts/phdrs3.t: New. * ld-scripts/phdrs3.exp: New.
16 lines
340 B
Perl
16 lines
340 B
Perl
PHDRS
|
|
{
|
|
data PT_LOAD ;
|
|
header PT_PHDR PHDRS ; /* OK */
|
|
text PT_LOAD FILEHDR PHDRS ;
|
|
}
|
|
|
|
SECTIONS
|
|
{
|
|
/* This test will fail on architectures where the startaddress below
|
|
is less than the constant MAXPAGESIZE. */
|
|
. = 0x800000 + SIZEOF_HEADERS;
|
|
.text : { *(.text) } :text
|
|
.data : { *(.data) } :data
|
|
/DISCARD/ : { *(.*) }
|
|
}
|