mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-12-21 04:42:53 +08:00
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.
17 lines
340 B
Perl
17 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/ : { *(.*) }
|
|
}
|