mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-23 03:29:47 +08:00
Allow for extra st_other readelf output in ld testsuite
On PowerPC64 ELFv2 readelf emits [<localentry>: 8] describing extra symbol st_other bits. * ld-elfvers/vers24.rd: Allow extra readelf output after symbol visibility. * ld-ifunc/ifunc.exp: Likewise.
This commit is contained in:
@ -1,3 +1,9 @@
|
|||||||
|
2013-11-04 Alan Modra <amodra@gmail.com>
|
||||||
|
|
||||||
|
* ld-elfvers/vers24.rd: Allow extra readelf output after
|
||||||
|
symbol visibility.
|
||||||
|
* ld-ifunc/ifunc.exp: Likewise.
|
||||||
|
|
||||||
2013-11-04 Alan Modra <amodra@gmail.com>
|
2013-11-04 Alan Modra <amodra@gmail.com>
|
||||||
|
|
||||||
* ld-scripts/crossref.exp: Don't allow changes made to CFLAGS
|
* ld-scripts/crossref.exp: Don't allow changes made to CFLAGS
|
||||||
|
@ -7,9 +7,9 @@ Symbol table '.dynsym' contains [0-9]+ entries:
|
|||||||
# And ensure the dynamic symbol table contains at least x@VERS.0
|
# And ensure the dynamic symbol table contains at least x@VERS.0
|
||||||
# and foo@@VERS.0 symbols
|
# and foo@@VERS.0 symbols
|
||||||
#...
|
#...
|
||||||
+[0-9]+: [0-9a-f]+ +(4 +OBJECT +GLOBAL +DEFAULT +[0-9]+ _?x|[0-9]+ +FUNC +GLOBAL +DEFAULT +[0-9]+ _?foo@)@VERS\.0
|
+[0-9]+: [0-9a-f]+ +(4 +OBJECT +GLOBAL +DEFAULT +[0-9]+ _?x|[0-9]+ +FUNC +GLOBAL +DEFAULT .* [0-9]+ _?foo@)@VERS\.0
|
||||||
#...
|
#...
|
||||||
+[0-9]+: [0-9a-f]+ +(4 +OBJECT +GLOBAL +DEFAULT +[0-9]+ _?x|[0-9]+ +FUNC +GLOBAL +DEFAULT +[0-9]+ _?foo@)@VERS\.0
|
+[0-9]+: [0-9a-f]+ +(4 +OBJECT +GLOBAL +DEFAULT +[0-9]+ _?x|[0-9]+ +FUNC +GLOBAL +DEFAULT .* [0-9]+ _?foo@)@VERS\.0
|
||||||
#...
|
#...
|
||||||
Symbol table '.symtab' contains [0-9]+ entries:
|
Symbol table '.symtab' contains [0-9]+ entries:
|
||||||
#pass
|
#pass
|
||||||
|
@ -98,8 +98,9 @@ proc contains_ifunc_symbol { binary_file } {
|
|||||||
|
|
||||||
# Look for a line like this:
|
# Look for a line like this:
|
||||||
# 58: 0000000000400600 30 IFUNC GLOBAL DEFAULT 12 library_func2
|
# 58: 0000000000400600 30 IFUNC GLOBAL DEFAULT 12 library_func2
|
||||||
|
# with perhaps some other info between the visibility and section
|
||||||
|
|
||||||
if { ![regexp ".*\[ \]*IFUNC\[ \]+GLOBAL\[ \]+DEFAULT\[ \]+\[UND0-9\]+\[ \]+library_func2\n" [file_contents readelf.out]] } {
|
if { ![regexp ".*\[ \]*IFUNC\[ \]+GLOBAL\[ \]+DEFAULT .* \[UND0-9\]+\[ \]+library_func2\n" [file_contents readelf.out]] } {
|
||||||
return 0
|
return 0
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user