aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2016-02-29 10:37:59 -0800
committerH.J. Lu <hjl.tools@gmail.com>2016-02-29 10:37:59 -0800
commit7f50ebc1b1215520b85cb9a8e709e502898fd2c8 (patch)
tree9cf7b710e928b63e7952f2baf37b7ea8110d5d71
parentd521906965b3e94648a723a13576236aaba301d0 (diff)
downloadgdb-7f50ebc1b1215520b85cb9a8e709e502898fd2c8.zip
gdb-7f50ebc1b1215520b85cb9a8e709e502898fd2c8.tar.gz
gdb-7f50ebc1b1215520b85cb9a8e709e502898fd2c8.tar.bz2
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.
-rw-r--r--ld/ChangeLog7
-rw-r--r--ld/testsuite/ld-elf/pr19162.d9
-rw-r--r--ld/testsuite/ld-elf/pr19162a.s2
-rw-r--r--ld/testsuite/ld-elf/pr19162b.s2
4 files changed, 20 insertions, 0 deletions
diff --git a/ld/ChangeLog b/ld/ChangeLog
index 32db828..1fb7d78 100644
--- a/ld/ChangeLog
+++ b/ld/ChangeLog
@@ -1,3 +1,10 @@
+2016-02-29 H.J. Lu <hongjiu.lu@intel.com>
+
+ 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 <cmiranda@synopsys.com>
* 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 0000000..5ecdd9a
--- /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 0000000..633ee1f
--- /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 0000000..7fc1a79
--- /dev/null
+++ b/ld/testsuite/ld-elf/pr19162b.s
@@ -0,0 +1,2 @@
+.section ".AAA", "wa"
+.long 0x12345678