[compiler-rt] r177868 - [ASan] Use dynamic symbol table when checking exported ASan runtime symbols
Alexey Samsonov
samsonov at google.com
Mon Mar 25 06:47:54 PDT 2013
Author: samsonov
Date: Mon Mar 25 08:47:53 2013
New Revision: 177868
URL: http://llvm.org/viewvc/llvm-project?rev=177868&view=rev
Log:
[ASan] Use dynamic symbol table when checking exported ASan runtime symbols
Modified:
compiler-rt/trunk/lib/asan/lit_tests/Darwin/interface_symbols_darwin.c
compiler-rt/trunk/lib/asan/lit_tests/Linux/interface_symbols_linux.c
Modified: compiler-rt/trunk/lib/asan/lit_tests/Darwin/interface_symbols_darwin.c
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/asan/lit_tests/Darwin/interface_symbols_darwin.c?rev=177868&r1=177867&r2=177868&view=diff
==============================================================================
--- compiler-rt/trunk/lib/asan/lit_tests/Darwin/interface_symbols_darwin.c (original)
+++ compiler-rt/trunk/lib/asan/lit_tests/Darwin/interface_symbols_darwin.c Mon Mar 25 08:47:53 2013
@@ -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 //" \
Modified: compiler-rt/trunk/lib/asan/lit_tests/Linux/interface_symbols_linux.c
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/asan/lit_tests/Linux/interface_symbols_linux.c?rev=177868&r1=177867&r2=177868&view=diff
==============================================================================
--- compiler-rt/trunk/lib/asan/lit_tests/Linux/interface_symbols_linux.c (original)
+++ compiler-rt/trunk/lib/asan/lit_tests/Linux/interface_symbols_linux.c Mon Mar 25 08:47:53 2013
@@ -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" \
More information about the llvm-commits
mailing list