This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
[committed, PATCH] Update PR ld/21903 tests for dejagnu 1.4.4
- From: "H.J. Lu" <hongjiu dot lu at intel dot com>
- To: binutils at sourceware dot org
- Date: Wed, 23 Aug 2017 16:04:37 -0700
- Subject: [committed, PATCH] Update PR ld/21903 tests for dejagnu 1.4.4
- Authentication-results: sourceware.org; auth=none
- Reply-to: "H.J. Lu" <hjl dot tools at gmail dot com>
Add '\' before -- to workaround dejagnu 1.4.4 which complains:
ERROR: bad switch "--no-define-common may not be used without -shared":...
* testsuite/ld-elf/pr21903c.d: Add '\' before --.
* testsuite/ld-elf/pr21903d.d: Likewise.
* testsuite/ld-elf/pr21903e.d: Likewise.
---
ld/ChangeLog | 6 ++++++
ld/testsuite/ld-elf/pr21903c.d | 2 +-
ld/testsuite/ld-elf/pr21903d.d | 2 +-
ld/testsuite/ld-elf/pr21903e.d | 2 +-
4 files changed, 9 insertions(+), 3 deletions(-)
diff --git a/ld/ChangeLog b/ld/ChangeLog
index bd732799cd..930a6cc3d4 100644
--- a/ld/ChangeLog
+++ b/ld/ChangeLog
@@ -1,5 +1,11 @@
2017-08-23 H.J. Lu <hongjiu.lu@intel.com>
+ * testsuite/ld-elf/pr21903c.d: Add '\' before --.
+ * testsuite/ld-elf/pr21903d.d: Likewise.
+ * testsuite/ld-elf/pr21903e.d: Likewise.
+
+2017-08-23 H.J. Lu <hongjiu.lu@intel.com>
+
* testsuite/ld-x86-64/pie2.d: Updated.
* testsuite/ld-x86-64/pr19719.d: Likewise.
* testsuite/ld-x86-64/pr19807-2a.d: Likewise.
diff --git a/ld/testsuite/ld-elf/pr21903c.d b/ld/testsuite/ld-elf/pr21903c.d
index d3910ec79b..1668c084cb 100644
--- a/ld/testsuite/ld-elf/pr21903c.d
+++ b/ld/testsuite/ld-elf/pr21903c.d
@@ -1,3 +1,3 @@
#source: pr21903.s
#ld: --no-define-common
-#error: --no-define-common may not be used without -shared
+#error: \--no-define-common may not be used without -shared
diff --git a/ld/testsuite/ld-elf/pr21903d.d b/ld/testsuite/ld-elf/pr21903d.d
index ec729007d1..84d0e76e83 100644
--- a/ld/testsuite/ld-elf/pr21903d.d
+++ b/ld/testsuite/ld-elf/pr21903d.d
@@ -1,4 +1,4 @@
#source: pr21903.s
#ld: --no-define-common -pie
#target: *-*-linux* *-*-gnu*
-#error: --no-define-common may not be used without -shared
+#error: \--no-define-common may not be used without -shared
diff --git a/ld/testsuite/ld-elf/pr21903e.d b/ld/testsuite/ld-elf/pr21903e.d
index 894c595c43..e673e4a7a9 100644
--- a/ld/testsuite/ld-elf/pr21903e.d
+++ b/ld/testsuite/ld-elf/pr21903e.d
@@ -1,3 +1,3 @@
#source: pr21903.s
#ld: -r --no-define-common
-#error: --no-define-common may not be used without -shared
+#error: \--no-define-common may not be used without -shared
--
2.13.5