Add a testcase for PR ld/19162
authorH.J. Lu <hjl.tools@gmail.com>
Mon, 29 Feb 2016 18:37:59 +0000 (10:37 -0800)
committerH.J. Lu <hjl.tools@gmail.com>
Mon, 29 Feb 2016 18:37:59 +0000 (10:37 -0800)
PR ld/19162
* testsuite/ld-elf/pr19162.d: New file.
* testsuite/ld-elf/pr19162a.s: Likwise.
* testsuite/ld-elf/pr19162b.s: Likwise.

ld/ChangeLog
ld/testsuite/ld-elf/pr19162.d [new file with mode: 0644]
ld/testsuite/ld-elf/pr19162a.s [new file with mode: 0644]
ld/testsuite/ld-elf/pr19162b.s [new file with mode: 0644]

index 32db828b71ff699c7df5d41103b86347b7b27073..1fb7d78982704bcd1a1ec22277214d4985356302 100644 (file)
@@ -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 (file)
index 0000000..5ecdd9a
--- /dev/null
@@ -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 (file)
index 0000000..633ee1f
--- /dev/null
@@ -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 (file)
index 0000000..7fc1a79
--- /dev/null
@@ -0,0 +1,2 @@
+.section ".AAA", "wa"
+.long 0x12345678
This page took 0.026582 seconds and 4 git commands to generate.