aboutsummaryrefslogtreecommitdiff
path: root/scripts/abilist.awk
diff options
context:
space:
mode:
authorFlorian Weimer <fweimer@redhat.com>2021-06-29 22:17:05 +0200
committerFlorian Weimer <fweimer@redhat.com>2021-06-29 22:17:08 +0200
commit3640654575bef7b56840fbadc1a6d6180ea011a7 (patch)
tree22e94076681604c7264d99394ce655ecf9c87a38 /scripts/abilist.awk
parent9dc7dc5708c5c35aeb2e0c594c74b4ba4674aa6d (diff)
downloadglibc-3640654575bef7b56840fbadc1a6d6180ea011a7.zip
glibc-3640654575bef7b56840fbadc1a6d6180ea011a7.tar.gz
glibc-3640654575bef7b56840fbadc1a6d6180ea011a7.tar.bz2
nptl_db: Re-use the ELF-to-abilist converter for ABI checking
The previous approach uses readelf -DWs, which does not produce a stable output format (older binutils versions do not include symbol version information). This commit re-uses scripts/abilist.awk with a tweak to include GLIBC_PRIVATE symbols. This awk script is based on objdump -T output, which appears to be stable over time. Reviewed-by: Szabolcs Nagy <szabolcs.nagy@arm.com>
Diffstat (limited to 'scripts/abilist.awk')
-rw-r--r--scripts/abilist.awk2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/abilist.awk b/scripts/abilist.awk
index a43400d..24a34cc 100644
--- a/scripts/abilist.awk
+++ b/scripts/abilist.awk
@@ -55,7 +55,7 @@ $2 == "g" || $2 == "w" && (NF == 7 || NF == 8) {
# caused STV_HIDDEN symbols to appear in .dynsym, though that is useless.
if (NF > 7 && $7 == ".hidden") next;
- if (version == "GLIBC_PRIVATE") next;
+ if (version == "GLIBC_PRIVATE" && !include_private) next;
desc = "";
if (type == "D" && ($4 == ".tbss" || $4 == ".tdata")) {