This is the mail archive of the binutils-cvs@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[binutils-gdb] Add a test for PR ld/19162


https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=7963511fbf0459fff586c3129705bfbc706770e3

commit 7963511fbf0459fff586c3129705bfbc706770e3
Author: H.J. Lu <hjl.tools@gmail.com>
Date:   Wed Oct 28 03:20:55 2015 -0700

    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.

Diff:
---
 ld/testsuite/ChangeLog            |  8 ++++++++
 ld/testsuite/ld-x86-64/pr19162.d  | 10 ++++++++++
 ld/testsuite/ld-x86-64/pr19162a.s |  2 ++
 ld/testsuite/ld-x86-64/pr19162b.s |  2 ++
 ld/testsuite/ld-x86-64/x86-64.exp |  1 +
 5 files changed, 23 insertions(+)

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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]