diff options
author | Alan Modra <amodra@gmail.com> | 2015-02-20 15:23:28 +1030 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2015-03-03 23:43:18 +1030 |
commit | a0af371c25ac1f215cf0db64e54cbb9a1b51f78c (patch) | |
tree | 7403a8c0e31ca4c4a8d8fca3b22bd4231fe9afd4 /scripts/localplt.awk | |
parent | 47465629e707a7e425fd15bf690d65c5da5bd998 (diff) | |
download | glibc-a0af371c25ac1f215cf0db64e54cbb9a1b51f78c.tar.gz glibc-a0af371c25ac1f215cf0db64e54cbb9a1b51f78c.tar.xz glibc-a0af371c25ac1f215cf0db64e54cbb9a1b51f78c.zip |
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.
Diffstat (limited to 'scripts/localplt.awk')
-rw-r--r-- | scripts/localplt.awk | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/localplt.awk b/scripts/localplt.awk index f55c41a037..84c94d1024 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) } } |