This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
[PATCH] Fix localplt test breakage with new readelf
- From: Alan Modra <amodra at gmail dot com>
- To: libc-alpha at sourceware dot org
- Date: Fri, 27 Feb 2015 00:06:49 +1030
- Subject: [PATCH] Fix localplt test breakage with new readelf
- Authentication-results: sourceware.org; auth=none
Since 2014-11-24 git commit bb4d2ac2, readelf has appended the symbol
version to symbols shown in reloc dumps.
* scripts/localplt.awk: Strip off symbol version.
diff --git a/scripts/localplt.awk b/scripts/localplt.awk
index f55c41a..84c94d1 100644
--- a/scripts/localplt.awk
+++ b/scripts/localplt.awk
@@ -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)
}
}
--
Alan Modra
Australia Development Lab, IBM