From 62e35c910b96d6619585c783d3061c635af8f965 Mon Sep 17 00:00:00 2001 From: Wang Xiang W Date: Tue, 19 Jan 2021 12:31:52 +0000 Subject: [PATCH] fat runtime: fix libc symbol parsing fixes github issue #292 --- cmake/build_wrapper.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmake/build_wrapper.sh b/cmake/build_wrapper.sh index 1962813f..895610c0 100755 --- a/cmake/build_wrapper.sh +++ b/cmake/build_wrapper.sh @@ -17,7 +17,7 @@ KEEPSYMS=$(mktemp -p /tmp keep.syms.XXXXX) LIBC_SO=$("$@" --print-file-name=libc.so.6) cp ${KEEPSYMS_IN} ${KEEPSYMS} # get all symbols from libc and turn them into patterns -nm -f p -g -D ${LIBC_SO} | sed -s 's/\([^ ]*\).*/^\1$/' >> ${KEEPSYMS} +nm -f p -g -D ${LIBC_SO} | sed -s 's/\([^ @]*\).*/^\1$/' >> ${KEEPSYMS} # build the object "$@" # rename the symbols in the object