forked from OSchip/llvm-project
[ASan] Use dynamic symbol table when checking exported ASan runtime symbols
llvm-svn: 177868
This commit is contained in:
parent
dbb4adf134
commit
961b636cf1
|
@ -5,7 +5,7 @@
|
|||
// RUN: %clang -fsanitize=address -dead_strip -O2 %s -o %t.exe
|
||||
// RUN: rm -f %t.symbols %t.interface
|
||||
|
||||
// RUN: nm `otool -L %t.exe | grep "asan_osx_dynamic.dylib" | \
|
||||
// RUN: nm -D `otool -L %t.exe | grep "asan_osx_dynamic.dylib" | \
|
||||
// RUN: tr -d '\011' | \
|
||||
// RUN: sed "s/.dylib.*/.dylib/"` \
|
||||
// RUN: | grep " T " | sed "s/.* T //" \
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
// Check the presense of interface symbols in compiled file.
|
||||
|
||||
// RUN: %clang -fsanitize=address -O2 %s -o %t.exe
|
||||
// RUN: nm %t.exe | grep " T " | sed "s/.* T //" \
|
||||
// RUN: nm -D %t.exe | grep " T " | sed "s/.* T //" \
|
||||
// RUN: | grep "__asan_" | sed "s/___asan_/__asan_/" \
|
||||
// RUN: | grep -v "__asan_malloc_hook" \
|
||||
// RUN: | grep -v "__asan_free_hook" \
|
||||
|
|
Loading…
Reference in New Issue