builtools: Make abi_gen.sh less prone to errors
authorAndreas Schneider <asn@samba.org>
Mon, 14 Feb 2022 06:59:52 +0000 (07:59 +0100)
committerAndreas Schneider <asn@cryptomilk.org>
Tue, 15 Feb 2022 11:35:31 +0000 (11:35 +0000)
commit2b9917d7a3cb88cf48517e4a93a94fa3ca6ff3d9
tree81d46a650ba08e3c7683604443d7cfc1585ebb4b
parent17d792e9aa38c3d8a2211c7b8ee3e2d88b438922
builtools: Make abi_gen.sh less prone to errors

The mold linker has more hidden symbols and we would need to filter them out
with nm, where objdump tells us which symbols are actually hidden. So we just
need to filter out whatever is hidden.

The use of awk makes it also easier to get what we want.

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Alexander Bokovoy <ab@samba.org>
buildtools/scripts/abi_gen.sh