Use nm/readelf with "failif"
authorH.J. Lu <hjl.tools@gmail.com>
Thu, 19 Feb 2015 12:45:27 +0000 (04:45 -0800)
committerH.J. Lu <hjl.tools@gmail.com>
Thu, 19 Feb 2015 12:45:27 +0000 (04:45 -0800)
PR ld/4317
* ld-i386/compressed1.d: Use nm/readelf with "failif".
* ld-x86-64/compressed1.d: Likewise.
* ld-x86-64/pie1.d: Likewise.

ld/testsuite/ChangeLog
ld/testsuite/ld-i386/compressed1.d
ld/testsuite/ld-x86-64/compressed1.d
ld/testsuite/ld-x86-64/pie1.d

index 7619bc5d96d45027f93082b72322363816295bb8..3eb1c998b24e3eb3756a3a4274b2f5afc99b435b 100644 (file)
@@ -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
index c17d3c7fce67ef2fcc397858ee90983fa0fcc396..e9eeef9ae2a5b8d2beed91031bbb753ebf41d768 100644 (file)
@@ -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
+#...
index 9e9d92cea2c0e8fd465e11f0de6a3dd00dc1a264..f97c9ad7da63d34fabedccba82fba110d93801d2 100644 (file)
@@ -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
+#...
index 368d1538f411a4e788501173012ba92c6d8f82bb..6373eea7e04c5139452bae716f5364c4e754518d 100644 (file)
@@ -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
+#...
This page took 0.026827 seconds and 4 git commands to generate.