diff options
Diffstat (limited to 'ld/testsuite/ld-scripts')
-rw-r--r-- | ld/testsuite/ld-scripts/phdrs3.exp | 1 | ||||
-rw-r--r-- | ld/testsuite/ld-scripts/phdrs3a.d | 9 | ||||
-rw-r--r-- | ld/testsuite/ld-scripts/phdrs3a.t | 15 |
3 files changed, 25 insertions, 0 deletions
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/ : { *(.*) } +} |