Add symbol imports file
Some checks reported errors
Tests / Clang total: 1096, failed: 2, passed: 1094
Tests / SIMD fallback total: 1096, failed: 2, passed: 1094
weaselab/conflict-set/pipeline/head Something is wrong with the build of this commit

This commit is contained in:
2024-04-03 12:32:28 -07:00
parent 618766ce2e
commit c1129ed0e2
2 changed files with 8 additions and 1 deletions

7
symbol-imports.txt Normal file
View File

@@ -0,0 +1,7 @@
__stack_chk_fail@GLIBC_2.4
__tls_get_addr@GLIBC_2.3
abort@GLIBC_2.2.5
free@GLIBC_2.2.5
malloc@GLIBC_2.2.5
memcpy@GLIBC_2.14
memmove@GLIBC_2.2.5

View File

@@ -7,7 +7,7 @@ set -euo pipefail
diff -u <(sort < "$2") <(nm "$1" | grep " T " | cut -f3 -d " " | sort)
ec=0
for symbol in $(nm "$1" | grep " U " | sed 's/ U //') ; do
if ! grep "$symbol" "$3" > /dev/null ; then
if ! grep --fixed-strings "$symbol" "$3" > /dev/null ; then
echo "Imported symbol $symbol not present in $3"
ec=1
fi