From 42fa60bc2a16ec1e0d95850d1bf39058d781721c Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Mon, 14 Feb 2022 07:59:52 +0100 Subject: [PATCH] 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 Reviewed-by: Alexander Bokovoy (cherry picked from commit 2b9917d7a3cb88cf48517e4a93a94fa3ca6ff3d9) --- buildtools/scripts/abi_gen.sh | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/buildtools/scripts/abi_gen.sh b/buildtools/scripts/abi_gen.sh index 6dd6d321f775..ddb0a7cc36fd 100755 --- a/buildtools/scripts/abi_gen.sh +++ b/buildtools/scripts/abi_gen.sh @@ -10,9 +10,14 @@ cat < $GDBSCRIPT -- 2.25.1