]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
scripts/abilist.awk: Handle special _end symbol for Hurd
authorFlorian Weimer <fweimer@redhat.com>
Fri, 30 Nov 2018 15:03:29 +0000 (16:03 +0100)
committerFlorian Weimer <fweimer@redhat.com>
Fri, 30 Nov 2018 21:22:57 +0000 (22:22 +0100)
Hurd has this in libc.so:

0024db9c g    D  .bss   00000000  GLIBC_2.2.6 _end

This g/D combination was not recognized before.

ChangeLog
scripts/abilist.awk
sysdeps/mach/hurd/i386/libc.abilist

index a18691ddf80d5a94eeb6ed0d6f26e76f42dcac7b..bb53b641a86efaffa08dcea5107fa28c6de94456 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2018-11-30  Florian Weimer  <fweimer@redhat.com>
+
+       * scripts/abilist.awk: Print "0x0" for size 0. Handle "g"/"D".
+       Extend error logging.
+       * sysdeps/mach/hurd/i386/libc.abilist (GLIBC_2.2.6): Adjust _end
+       symbol.
+
 2018-11-30  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
 
        * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Use
index b40be91f823aaf9302b909ea7c5253ab2614f046..a43400d5b4011ea718499627557167452f3ae0ca 100644 (file)
@@ -42,7 +42,11 @@ $2 == "g" || $2 == "w" && (NF == 7 || NF == 8) {
   type = $3;
   size = $5;
   sub(/^0*/, "", size);
-  size = " 0x" size;
+  if (size == "") {
+      size = " 0x0";
+  } else {
+      size = " 0x" size;
+  }
   version = $6;
   symbol = $NF;
   gsub(/[()]/, "", version);
@@ -73,6 +77,9 @@ $2 == "g" || $2 == "w" && (NF == 7 || NF == 8) {
   else if ($4 == "*ABS*") {
     next;
   }
+  else if (type == "D") {
+    # Accept unchanged.
+  }
   else if (type == "DO") {
     type = "D";
   }
@@ -89,7 +96,7 @@ $2 == "g" || $2 == "w" && (NF == 7 || NF == 8) {
     size = "";
   }
   else {
-    print "ERROR: Unable to handle this type of symbol."
+    print "ERROR: Unable to handle this type of symbol:", $0
     exit 1
   }
 
index d4c4a91c84f625a2a21c2e5bc4a4b4e31125dd85..f3993cf994bea8d3f68abe95b31b3bd89c89462d 100644 (file)
@@ -554,7 +554,7 @@ GLIBC_2.2.6 __xstat64 F
 GLIBC_2.2.6 _authenticate F
 GLIBC_2.2.6 _dl_mcount_wrapper F
 GLIBC_2.2.6 _dl_mcount_wrapper_check F
-GLIBC_2.2.6 _end GLIBC_2.2.6 g ? D .bss 00000000
+GLIBC_2.2.6 _end D 0x0
 GLIBC_2.2.6 _environ D 0x4
 GLIBC_2.2.6 _exit F
 GLIBC_2.2.6 _flushlbf F