This is the mail archive of the binutils@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]

[committed, PATCH] Add a testcase for PR ld/14918


I checked in this patch to add a testcase for PR ld/14918


H.J.
--
	PR ld/14918
	* ld-plugin/lto.exp (lto_link_elf_tests): Add PR ld/14918 test.

	* ld-plugin/pr14918.c: New file.
	* ld-plugin/pr14918.d: Likewise.
---
 ld/testsuite/ChangeLog           | 8 ++++++++
 ld/testsuite/ld-plugin/lto.exp   | 3 +++
 ld/testsuite/ld-plugin/pr14918.c | 5 +++++
 ld/testsuite/ld-plugin/pr14918.d | 4 ++++
 4 files changed, 20 insertions(+)
 create mode 100644 ld/testsuite/ld-plugin/pr14918.c
 create mode 100644 ld/testsuite/ld-plugin/pr14918.d

diff --git a/ld/testsuite/ChangeLog b/ld/testsuite/ChangeLog
index 7bc1ea6..8351d6f 100644
--- a/ld/testsuite/ChangeLog
+++ b/ld/testsuite/ChangeLog
@@ -1,3 +1,11 @@
+2015-02-03  H.J. Lu  <hongjiu.lu@intel.com>
+
+	PR ld/14918
+	* ld-plugin/lto.exp (lto_link_elf_tests): Add PR ld/14918 test.
+
+	* ld-plugin/pr14918.c: New file.
+	* ld-plugin/pr14918.d: Likewise.
+
 2015-01-29  H.J. Lu  <hongjiu.lu@intel.com>
 
 	* lib/ld-lib.exp (ar_simple_create): Move -rc before $aropts.
diff --git a/ld/testsuite/ld-plugin/lto.exp b/ld/testsuite/ld-plugin/lto.exp
index d8e7a1e..f0643cc 100644
--- a/ld/testsuite/ld-plugin/lto.exp
+++ b/ld/testsuite/ld-plugin/lto.exp
@@ -247,6 +247,9 @@ set lto_link_elf_tests [list \
   [list "PR ld/16746 (2)" \
    "-O2 -flto -fuse-linker-plugin tmpdir/pr16746c.o tmpdir/pr16746a.o" "-O2 -flto" \
    {dummy.c} {} "pr16746b.exe"] \
+  [list "PR ld/14918" \
+   "-flto" "-flto" \
+   {pr14918.c} {{"readelf" {-d --wide} "pr14918.d"}} "pr14918.exe" "c"] \
 ]
 
 # Check final symbols in executables.
diff --git a/ld/testsuite/ld-plugin/pr14918.c b/ld/testsuite/ld-plugin/pr14918.c
new file mode 100644
index 0000000..a9bce4a
--- /dev/null
+++ b/ld/testsuite/ld-plugin/pr14918.c
@@ -0,0 +1,5 @@
+int
+main ()
+{
+  return 0;
+}
diff --git a/ld/testsuite/ld-plugin/pr14918.d b/ld/testsuite/ld-plugin/pr14918.d
new file mode 100644
index 0000000..0b14948
--- /dev/null
+++ b/ld/testsuite/ld-plugin/pr14918.d
@@ -0,0 +1,4 @@
+#failif
+#...
+ 0x0+1 \(NEEDED\) +Shared library: \[libgcc_s.so.[0-9]+\]
+#...
-- 
1.9.3


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