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:
parent
09a1697895
commit
b9ed7c0818
4 changed files with 33 additions and 0 deletions
|
@ -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
|
||||
|
|
|
@ -34,5 +34,6 @@ if { [istarget spu*-*-*] } {
|
|||
}
|
||||
|
||||
run_dump_test "phdrs3"
|
||||
run_dump_test "phdrs3a"
|
||||
|
||||
set LDFLAGS $old_ldflags
|
||||
|
|
9
ld/testsuite/ld-scripts/phdrs3a.d
Normal file
9
ld/testsuite/ld-scripts/phdrs3a.d
Normal 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
|
15
ld/testsuite/ld-scripts/phdrs3a.t
Normal file
15
ld/testsuite/ld-scripts/phdrs3a.t
Normal 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/ : { *(.*) }
|
||||
}
|
Loading…
Reference in a new issue