Make exporting ___asan_globals_registered optional

This commit is contained in:
2024-10-04 16:05:35 -07:00
parent a0a961ae58
commit f8a1643714
+1 -1
View File
@@ -4,7 +4,7 @@ set -euo pipefail
# ./test_symbols.sh <library> <expected exported symbols file> <allowed imported symbols file> # ./test_symbols.sh <library> <expected exported symbols file> <allowed imported symbols file>
diff -u <(sort < "$2") <(nm "$1" | grep " T " | cut -f3 -d " " | sort) diff -u <(sort < "$2" | grep -v ___asan_globals_registered) <(nm "$1" | grep " T " | cut -f3 -d " " | sort)
ec=0 ec=0
for symbol in $(nm "$1" | grep " U " | sed 's/ U //') ; do for symbol in $(nm "$1" | grep " U " | sed 's/ U //') ; do
if ! grep --fixed-strings "$symbol" "$3" > /dev/null ; then if ! grep --fixed-strings "$symbol" "$3" > /dev/null ; then