From b9ed7c0818f1ed119d4a6c1913d911e751747e50 Mon Sep 17 00:00:00 2001 From: "H.J. Lu" Date: Thu, 8 Oct 2009 02:38:26 +0000 Subject: 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. --- ld/testsuite/ChangeLog | 8 ++++++++ ld/testsuite/ld-scripts/phdrs3.exp | 1 + ld/testsuite/ld-scripts/phdrs3a.d | 9 +++++++++ ld/testsuite/ld-scripts/phdrs3a.t | 15 +++++++++++++++ 4 files changed, 33 insertions(+) create mode 100644 ld/testsuite/ld-scripts/phdrs3a.d create mode 100644 ld/testsuite/ld-scripts/phdrs3a.t diff --git a/ld/testsuite/ChangeLog b/ld/testsuite/ChangeLog index 774301e..43f5d1b 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 90651af..e7e0414 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 0000000..80bde71 --- /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 0000000..c07ff34 --- /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/ : { *(.*) } +} -- cgit v1.1