Skip to content

Commit

Permalink
[sanitizer_common] Show new unexpected symbols.
Browse files Browse the repository at this point in the history
  • Loading branch information
morehouse committed Apr 6, 2020
1 parent 7662ad6 commit 68d73df
Showing 1 changed file with 4 additions and 2 deletions.
Expand Up @@ -178,8 +178,10 @@ $CC $FLAGS -fno-lto -c opt.bc -o symbolizer.o

echo "Checking undefined symbols..."
nm -f posix -g symbolizer.o | cut -f 1,2 -d \ | LC_COLLATE=C sort -u > undefined.new
(diff -u $SCRIPT_DIR/global_symbols.txt undefined.new | grep -E "^\+[^+]") && \
(echo "Failed: unexpected symbols"; exit 1)
if diff -u $SCRIPT_DIR/global_symbols.txt undefined.new | grep -E "^\+[^+]"; then
echo "Failed: unexpected symbols"
exit 1
fi

arch() {
objdump -f $1 | grep -m1 -Po "(?<=file format ).*$"
Expand Down

0 comments on commit 68d73df

Please sign in to comment.