From: H.J. Lu Date: Thu, 8 Oct 2009 02:38:26 +0000 (+0000) Subject: 2009-10-07 H.J. Lu X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=b9ed7c0818f1ed119d4a6c1913d911e751747e50;p=binutils-gdb.git 2009-10-07 H.J. Lu PR ld/10744 * ld-scripts/phdrs3.exp: Run phdrs3a. * ld-scripts/phdrs3a.d: New. * ld-scripts/phdrs3a.t: Likewise. --- diff --git a/ld/testsuite/ChangeLog b/ld/testsuite/ChangeLog index 774301e2b28..43f5d1b0e54 100644 --- a/ld/testsuite/ChangeLog +++ b/ld/testsuite/ChangeLog @@ -1,3 +1,11 @@ +2009-10-07 H.J. Lu + + PR ld/10744 + * ld-scripts/phdrs3.exp: Run phdrs3a. + + * ld-scripts/phdrs3a.d: New. + * ld-scripts/phdrs3a.t: Likewise. + 2009-10-08 Alan Modra PR ld/10744 diff --git a/ld/testsuite/ld-scripts/phdrs3.exp b/ld/testsuite/ld-scripts/phdrs3.exp index 90651af433a..e7e04142e01 100644 --- a/ld/testsuite/ld-scripts/phdrs3.exp +++ b/ld/testsuite/ld-scripts/phdrs3.exp @@ -34,5 +34,6 @@ if { [istarget spu*-*-*] } { } run_dump_test "phdrs3" +run_dump_test "phdrs3a" set LDFLAGS $old_ldflags diff --git a/ld/testsuite/ld-scripts/phdrs3a.d b/ld/testsuite/ld-scripts/phdrs3a.d new file mode 100644 index 00000000000..80bde71ea38 --- /dev/null +++ b/ld/testsuite/ld-scripts/phdrs3a.d @@ -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 diff --git a/ld/testsuite/ld-scripts/phdrs3a.t b/ld/testsuite/ld-scripts/phdrs3a.t new file mode 100644 index 00000000000..c07ff34b71f --- /dev/null +++ b/ld/testsuite/ld-scripts/phdrs3a.t @@ -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/ : { *(.*) } +}