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:
parent
837914eeb4
commit
db95bb7c59
@ -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
|
||||
|
@ -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
|
||||
#...
|
||||
|
@ -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
|
||||
#...
|
||||
|
@ -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
|
||||
#...
|
||||
|
Loading…
Reference in New Issue
Block a user