Files
conflict-set/test_symbols.sh
Andrew Noyes eca1b9993a Improve symbols test
Remove seed argument and check for disallowed undefined symbols
2024-01-30 11:46:03 -08:00

7 lines
159 B
Bash
Executable File

#!/bin/bash
set -euo pipefail
diff -u "$2" <(nm "$1" | grep " T " | cut -f3 -d " " | sort)
nm "$1" | grep " U " | (! grep -Pv 'abort|free|malloc|mem[a-z]*')