aboutsummaryrefslogtreecommitdiff
path: root/ld
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2015-02-19 04:45:27 -0800
committerH.J. Lu <hjl.tools@gmail.com>2015-02-19 04:45:27 -0800
commitdb95bb7c5946a109e1584ab2c43c052ff39e63bd (patch)
tree1899f6939e0bbc218899e72cb41c0e6087374d4d /ld
parent837914eeb43cd0231cc3c25e8644f0d6190034e6 (diff)
downloadgdb-db95bb7c5946a109e1584ab2c43c052ff39e63bd.zip
gdb-db95bb7c5946a109e1584ab2c43c052ff39e63bd.tar.gz
gdb-db95bb7c5946a109e1584ab2c43c052ff39e63bd.tar.bz2
Use nm/readelf with "failif"
PR ld/4317 * ld-i386/compressed1.d: Use nm/readelf with "failif". * ld-x86-64/compressed1.d: Likewise. * ld-x86-64/pie1.d: Likewise.
Diffstat (limited to 'ld')
-rw-r--r--ld/testsuite/ChangeLog7
-rw-r--r--ld/testsuite/ld-i386/compressed1.d6
-rw-r--r--ld/testsuite/ld-x86-64/compressed1.d6
-rw-r--r--ld/testsuite/ld-x86-64/pie1.d6
4 files changed, 25 insertions, 0 deletions
diff --git a/ld/testsuite/ChangeLog b/ld/testsuite/ChangeLog
index 7619bc5..3eb1c99 100644
--- a/ld/testsuite/ChangeLog
+++ b/ld/testsuite/ChangeLog
@@ -1,3 +1,10 @@
+2015-02-19 H.J. Lu <hongjiu.lu@intel.com>
+
+ PR ld/4317
+ * ld-i386/compressed1.d: Use nm/readelf with "failif".
+ * ld-x86-64/compressed1.d: Likewise.
+ * ld-x86-64/pie1.d: Likewise.
+
2015-02-19 Alan Modra <amodra@gmail.com>
PR ld/4317
diff --git a/ld/testsuite/ld-i386/compressed1.d b/ld/testsuite/ld-i386/compressed1.d
index c17d3c7..e9eeef9 100644
--- a/ld/testsuite/ld-i386/compressed1.d
+++ b/ld/testsuite/ld-i386/compressed1.d
@@ -2,3 +2,9 @@
#as: --32
#ld: -e foo -melf_i386 --noinhibit-exec
#warning: .*/compressed1.c:13: undefined reference to .bar.
+#nm: -n
+
+#failif
+#...
+[ \t]+U bar
+#...
diff --git a/ld/testsuite/ld-x86-64/compressed1.d b/ld/testsuite/ld-x86-64/compressed1.d
index 9e9d92c..f97c9ad 100644
--- a/ld/testsuite/ld-x86-64/compressed1.d
+++ b/ld/testsuite/ld-x86-64/compressed1.d
@@ -2,3 +2,9 @@
#as: --64
#ld: -e foo -melf_x86_64 --noinhibit-exec
#warning: .*/compressed1.c:13: undefined reference to .bar.
+#nm: -n
+
+#failif
+#...
+[ \t]+U bar
+#...
diff --git a/ld/testsuite/ld-x86-64/pie1.d b/ld/testsuite/ld-x86-64/pie1.d
index 368d153..6373eea 100644
--- a/ld/testsuite/ld-x86-64/pie1.d
+++ b/ld/testsuite/ld-x86-64/pie1.d
@@ -1,4 +1,10 @@
#name: PIE with undefined symbol
#as: --64
#ld: -pie -melf_x86_64 --noinhibit-exec
+#readelf: -s --wide
#warning: \A[^\n]*\.o[^\n]*In function `_start':\n[^\n]*: undefined reference to `foo'\Z
+
+#failif
+#...
+ +[0-9]+: +[0-9a-f]+ +0 +NOTYPE +GLOBAL +DEFAULT +UND foo
+#...