diff options
author | Florian Weimer <fweimer@redhat.com> | 2018-11-30 16:03:29 +0100 |
---|---|---|
committer | Florian Weimer <fweimer@redhat.com> | 2018-11-30 22:22:57 +0100 |
commit | 5e63c240a22c70d928e5c645f913d59074afd329 (patch) | |
tree | 4e628150d90fcc4e1551443a8b416c372dd0bd40 /scripts/abilist.awk | |
parent | Fix ChangeLog date from previous commit (diff) | |
download | glibc-5e63c240a22c70d928e5c645f913d59074afd329.tar.gz glibc-5e63c240a22c70d928e5c645f913d59074afd329.tar.bz2 glibc-5e63c240a22c70d928e5c645f913d59074afd329.zip |
scripts/abilist.awk: Handle special _end symbol for Hurd
Hurd has this in libc.so:
0024db9c g D .bss 00000000 GLIBC_2.2.6 _end
This g/D combination was not recognized before.
Diffstat (limited to 'scripts/abilist.awk')
-rw-r--r-- | scripts/abilist.awk | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/scripts/abilist.awk b/scripts/abilist.awk index b40be91f82..a43400d5b4 100644 --- a/scripts/abilist.awk +++ b/scripts/abilist.awk @@ -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 } |