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.
This commit is contained in:
H.J. Lu 2015-02-19 04:45:27 -08:00
parent 837914eeb4
commit db95bb7c59
4 changed files with 25 additions and 0 deletions

View 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

View 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
#...

View 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
#...

View 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
#...