mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-23 03:29:47 +08:00
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:
@ -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>
|
2015-02-19 Alan Modra <amodra@gmail.com>
|
||||||
|
|
||||||
PR ld/4317
|
PR ld/4317
|
||||||
|
@ -2,3 +2,9 @@
|
|||||||
#as: --32
|
#as: --32
|
||||||
#ld: -e foo -melf_i386 --noinhibit-exec
|
#ld: -e foo -melf_i386 --noinhibit-exec
|
||||||
#warning: .*/compressed1.c:13: undefined reference to .bar.
|
#warning: .*/compressed1.c:13: undefined reference to .bar.
|
||||||
|
#nm: -n
|
||||||
|
|
||||||
|
#failif
|
||||||
|
#...
|
||||||
|
[ \t]+U bar
|
||||||
|
#...
|
||||||
|
@ -2,3 +2,9 @@
|
|||||||
#as: --64
|
#as: --64
|
||||||
#ld: -e foo -melf_x86_64 --noinhibit-exec
|
#ld: -e foo -melf_x86_64 --noinhibit-exec
|
||||||
#warning: .*/compressed1.c:13: undefined reference to .bar.
|
#warning: .*/compressed1.c:13: undefined reference to .bar.
|
||||||
|
#nm: -n
|
||||||
|
|
||||||
|
#failif
|
||||||
|
#...
|
||||||
|
[ \t]+U bar
|
||||||
|
#...
|
||||||
|
@ -1,4 +1,10 @@
|
|||||||
#name: PIE with undefined symbol
|
#name: PIE with undefined symbol
|
||||||
#as: --64
|
#as: --64
|
||||||
#ld: -pie -melf_x86_64 --noinhibit-exec
|
#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
|
#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
|
||||||
|
#...
|
||||||
|
Reference in New Issue
Block a user