1
0
mirror of https://sourceware.org/git/glibc.git synced 2025-06-29 22:21:48 +03:00

Fix localplt test breakage with new readelf

Since 2014-11-24 binutils git commit bb4d2ac2, readelf has appended
the symbol version to symbols shown in reloc dumps.

	[BZ #16512]
	* scripts/localplt.awk: Strip off symbol version.
	* NEWS: Mention bug fix.
This commit is contained in:
Alan Modra
2015-02-20 15:23:28 +10:30
parent 47465629e7
commit a0af371c25
3 changed files with 13 additions and 7 deletions

View File

@ -35,11 +35,11 @@ in_relocs && relocs_offset == jmprel_offset && NF >= 5 {
# Relocations against GNU_IFUNC symbols are not shown as an hexadecimal
# value, but rather as the resolver symbol followed by ().
if ($4 ~ /\(\)/) {
print whatfile, $5
print whatfile, gensub(/@.*/, "", "g", $5)
} else {
symval = strtonum("0x" $4);
if (symval != 0)
print whatfile, $5
print whatfile, gensub(/@.*/, "", "g", $5)
}
}