]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Fix localplt test breakage with new readelf
authorAlan Modra <amodra@gmail.com>
Fri, 20 Feb 2015 04:53:28 +0000 (15:23 +1030)
committerAdhemerval Zanella <adhemerval.zanella@linaro.org>
Fri, 27 Jan 2017 15:16:52 +0000 (13:16 -0200)
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.

ChangeLog
NEWS
scripts/localplt.awk

index 54ff9f8e17b263c1fe53858f90113f2fd7e2aff7..b31754382b5bc7cbb63eeb26a4d276fc245f7ef8 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2015-03-03  Alan Modra  <amodra@gmail.com>
+
+       [BZ #16512]
+       * scripts/localplt.awk: Strip off symbol version.
+       * NEWS: Mention bug fix.
+
 2016-08-26  Florian Weimer  <fweimer@redhat.com>
 
        [BZ #20432]
diff --git a/NEWS b/NEWS
index f6f868595b3ba414c5f93c3e21f317d4228dda7c..e0ed68d90f3fe85fcdbbbc0394647b248769d014 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -9,8 +9,8 @@ Version 2.21.1
 
 * The following bugs are resolved with this release:
 
-  17090, 17269, 17620, 17621, 17628, 17905, 17949, 18007, 18032, 18080,
-  18240, 18287, 18508, 18694, 18887, 18985, 19048, 19682.
+  16512, 17090, 17269, 17620, 17621, 17628, 17905, 17949, 18007, 18032,
+  18080, 18240, 18287, 18508, 18694, 18887, 18985, 19048, 19682.
 
 * A stack-based buffer overflow was found in libresolv when invoked from
   libnss_dns, allowing specially crafted DNS responses to seize control
index f55c41a03739a96c4f0d372fb3baadcffe9df012..84c94d102415b2ff9490b1e4235809212e675069 100644 (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)
   }
 }