diff options
author | Florian Weimer <fweimer@redhat.com> | 2021-06-29 22:17:05 +0200 |
---|---|---|
committer | Florian Weimer <fweimer@redhat.com> | 2021-06-29 22:17:08 +0200 |
commit | 3640654575bef7b56840fbadc1a6d6180ea011a7 (patch) | |
tree | 22e94076681604c7264d99394ce655ecf9c87a38 /scripts | |
parent | 9dc7dc5708c5c35aeb2e0c594c74b4ba4674aa6d (diff) | |
download | glibc-3640654575bef7b56840fbadc1a6d6180ea011a7.tar glibc-3640654575bef7b56840fbadc1a6d6180ea011a7.tar.gz glibc-3640654575bef7b56840fbadc1a6d6180ea011a7.tar.bz2 glibc-3640654575bef7b56840fbadc1a6d6180ea011a7.zip |
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')
-rw-r--r-- | scripts/abilist.awk | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/abilist.awk b/scripts/abilist.awk index a43400d5b4..24a34ccbed 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")) { |