Improve symbols test

Remove seed argument and check for disallowed undefined symbols
This commit is contained in:
2024-01-30 11:46:03 -08:00
parent 3735a43553
commit eca1b9993a
7 changed files with 17 additions and 9 deletions

View File

@@ -2,4 +2,5 @@
set -euo pipefail
diff -u <(nm $1 | grep " T " | cut -f3 -d " " | sort) $2
diff -u "$2" <(nm "$1" | grep " T " | cut -f3 -d " " | sort)
nm "$1" | grep " U " | (! grep -Pv 'abort|free|malloc|mem[a-z]*')