From: H.J. Lu Date: Mon, 29 Feb 2016 18:37:59 +0000 (-0800) Subject: Add a testcase for PR ld/19162 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=7f50ebc1b1215520b85cb9a8e709e502898fd2c8;p=binutils-gdb.git Add a testcase for PR ld/19162 PR ld/19162 * testsuite/ld-elf/pr19162.d: New file. * testsuite/ld-elf/pr19162a.s: Likwise. * testsuite/ld-elf/pr19162b.s: Likwise. --- diff --git a/ld/ChangeLog b/ld/ChangeLog index 32db828b71f..1fb7d789827 100644 --- a/ld/ChangeLog +++ b/ld/ChangeLog @@ -1,3 +1,10 @@ +2016-02-29 H.J. Lu + + PR ld/19162 + * testsuite/ld-elf/pr19162.d: New file. + * testsuite/ld-elf/pr19162a.s: Likwise. + * testsuite/ld-elf/pr19162b.s: Likwise. + 2016-02-29 Cupertino Miranda * testsuite/ld-elf/merge.d: Removed xfail for ARC. diff --git a/ld/testsuite/ld-elf/pr19162.d b/ld/testsuite/ld-elf/pr19162.d new file mode 100644 index 00000000000..5ecdd9ace3b --- /dev/null +++ b/ld/testsuite/ld-elf/pr19162.d @@ -0,0 +1,9 @@ +#source: pr19162a.s +#source: pr19162b.s +#ld: -shared -z max-page-size=0x200000 +#readelf: -l --wide +#target: *-*-linux* *-*-gnu* *-*-nacl* + +#... + +LOAD +0x0+[0-9a-f]{3} +0x[0-9a-f]+ +0x[0-9a-f]+ +0x0+[0-9a-f]{3} +0x0+[0-9a-f]{3} +R[WE]+ +0x200000 +#pass diff --git a/ld/testsuite/ld-elf/pr19162a.s b/ld/testsuite/ld-elf/pr19162a.s new file mode 100644 index 00000000000..633ee1fa394 --- /dev/null +++ b/ld/testsuite/ld-elf/pr19162a.s @@ -0,0 +1,2 @@ +.section ".AAA", "a" +.long 0x12345678 diff --git a/ld/testsuite/ld-elf/pr19162b.s b/ld/testsuite/ld-elf/pr19162b.s new file mode 100644 index 00000000000..7fc1a7908ec --- /dev/null +++ b/ld/testsuite/ld-elf/pr19162b.s @@ -0,0 +1,2 @@ +.section ".AAA", "wa" +.long 0x12345678