]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
Add a test for PR ld/19162
authorH.J. Lu <hjl.tools@gmail.com>
Wed, 28 Oct 2015 10:20:55 +0000 (03:20 -0700)
committerH.J. Lu <hjl.tools@gmail.com>
Wed, 28 Oct 2015 10:20:55 +0000 (03:20 -0700)
PR ld/19162
* ld-x86-64/x86-64.exp: Run pr19162.
* ld-x86-64/pr19162.d: New file.
* ld-x86-64/pr19162a.s: Likewise.
* ld-x86-64/pr19162b.s: Likewise.

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

index 6981d70f334d981b4de1e5a3ffa851f7c2946e8b..f0124f999faf4e7c86188c0ef4fb5fff07bac082 100644 (file)
@@ -1,3 +1,11 @@
+2015-10-28  H.J. Lu  <hongjiu.lu@intel.com>
+
+       PR ld/19162
+       * ld-x86-64/x86-64.exp: Run pr19162.
+       * ld-x86-64/pr19162.d: New file.
+       * ld-x86-64/pr19162a.s: Likewise.
+       * ld-x86-64/pr19162b.s: Likewise.
+
 2015-10-27  Laurent Alfonsi <laurent.alfonsi@st.com>
             Christophe Monat <christophe.monat@st.com>
 
diff --git a/ld/testsuite/ld-x86-64/pr19162.d b/ld/testsuite/ld-x86-64/pr19162.d
new file mode 100644 (file)
index 0000000..42441e9
--- /dev/null
@@ -0,0 +1,10 @@
+#source: pr19162a.s
+#source: pr19162b.s
+#as: --64
+#ld: -melf_x86_64 -shared -z max-page-size=0x200000 -z common-page-size=0x1000
+#readelf: -l --wide
+#target: x86_64-*-linux*
+
+#...
+  DYNAMIC        0x0001a8 0x00000000002001a8 0x00000000002001a8 0x0000b0 0x0000b0 RW  0x8
+#pass
diff --git a/ld/testsuite/ld-x86-64/pr19162a.s b/ld/testsuite/ld-x86-64/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-x86-64/pr19162b.s b/ld/testsuite/ld-x86-64/pr19162b.s
new file mode 100644 (file)
index 0000000..7fc1a79
--- /dev/null
@@ -0,0 +1,2 @@
+.section ".AAA", "wa"
+.long 0x12345678
index 869cbe516700fa5cee3e33fc082c6b83bd9b2724..63d721162bb78672912926feb32657db9e39382c 100644 (file)
@@ -347,6 +347,7 @@ run_dump_test "pr18815"
 run_dump_test "pr19013"
 run_dump_test "pr19013-x32"
 run_dump_test "pr19013-nacl"
+run_dump_test "pr19162"
 run_dump_test "pr19175"
 
 # Add $PLT_CFLAGS if PLT is expected.