From 3640654575bef7b56840fbadc1a6d6180ea011a7 Mon Sep 17 00:00:00 2001 From: Florian Weimer Date: Tue, 29 Jun 2021 22:17:05 +0200 Subject: 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 --- scripts/abilist.awk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'scripts') 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")) { -- cgit 1.4.1