2009-10-07 H.J. Lu <hongjiu.lu@intel.com>

PR ld/10744
	* ld-scripts/phdrs3.exp: Run phdrs3a.

	* ld-scripts/phdrs3a.d: New.
	* ld-scripts/phdrs3a.t: Likewise.
This commit is contained in:
H.J. Lu 2009-10-08 02:38:26 +00:00
parent 09a1697895
commit b9ed7c0818
4 changed files with 33 additions and 0 deletions

View File

@ -1,3 +1,11 @@
2009-10-07 H.J. Lu <hongjiu.lu@intel.com>
PR ld/10744
* ld-scripts/phdrs3.exp: Run phdrs3a.
* ld-scripts/phdrs3a.d: New.
* ld-scripts/phdrs3a.t: Likewise.
2009-10-08 Alan Modra <amodra@bigpond.net.au>
PR ld/10744

View File

@ -34,5 +34,6 @@ if { [istarget spu*-*-*] } {
}
run_dump_test "phdrs3"
run_dump_test "phdrs3a"
set LDFLAGS $old_ldflags

View File

@ -0,0 +1,9 @@
#name: PHDRS headers 3a
#source: phdrs.s
#ld: -T phdrs3a.t
#readelf: -l --wide
#...
[ \t]+LOAD[ x0-9a-f]+ R [ x0-9a-f]+
[ \t]+LOAD[ x0-9a-f]+ E [ x0-9a-f]+
#pass

View File

@ -0,0 +1,15 @@
PHDRS
{
data PT_LOAD FILEHDR PHDRS FLAGS(4);
text PT_LOAD FILEHDR PHDRS FLAGS(1);
}
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/ : { *(.*) }
}