aboutsummaryrefslogtreecommitdiff
path: root/ld
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2015-10-28 03:20:55 -0700
committerH.J. Lu <hjl.tools@gmail.com>2015-10-28 03:20:55 -0700
commit7963511fbf0459fff586c3129705bfbc706770e3 (patch)
treec52190af17d1060cab0414c039c13cf3569715d8 /ld
parent199af1503922ce2134d774a78be0d9e2ae055ab1 (diff)
downloadfsf-binutils-gdb-7963511fbf0459fff586c3129705bfbc706770e3.zip
fsf-binutils-gdb-7963511fbf0459fff586c3129705bfbc706770e3.tar.gz
fsf-binutils-gdb-7963511fbf0459fff586c3129705bfbc706770e3.tar.bz2
Add a test for PR ld/19162
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.
Diffstat (limited to 'ld')
-rw-r--r--ld/testsuite/ChangeLog8
-rw-r--r--ld/testsuite/ld-x86-64/pr19162.d10
-rw-r--r--ld/testsuite/ld-x86-64/pr19162a.s2
-rw-r--r--ld/testsuite/ld-x86-64/pr19162b.s2
-rw-r--r--ld/testsuite/ld-x86-64/x86-64.exp1
5 files changed, 23 insertions, 0 deletions
diff --git a/ld/testsuite/ChangeLog b/ld/testsuite/ChangeLog
index 6981d70..f0124f9 100644
--- a/ld/testsuite/ChangeLog
+++ b/ld/testsuite/ChangeLog
@@ -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
index 0000000..42441e9
--- /dev/null
+++ b/ld/testsuite/ld-x86-64/pr19162.d
@@ -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
index 0000000..633ee1f
--- /dev/null
+++ b/ld/testsuite/ld-x86-64/pr19162a.s
@@ -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
index 0000000..7fc1a79
--- /dev/null
+++ b/ld/testsuite/ld-x86-64/pr19162b.s
@@ -0,0 +1,2 @@
+.section ".AAA", "wa"
+.long 0x12345678
diff --git a/ld/testsuite/ld-x86-64/x86-64.exp b/ld/testsuite/ld-x86-64/x86-64.exp
index 869cbe5..63d7211 100644
--- a/ld/testsuite/ld-x86-64/x86-64.exp
+++ b/ld/testsuite/ld-x86-64/x86-64.exp
@@ -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.