[compiler-rt] r198017 - [ASan] Make sure none of the __asan_gen_ global strings end up in the symbol table, add a test.

Alexander Potapenko glider at google.com
Wed Dec 25 06:22:15 PST 2013


Author: glider
Date: Wed Dec 25 08:22:15 2013
New Revision: 198017

URL: http://llvm.org/viewvc/llvm-project?rev=198017&view=rev
Log:
[ASan] Make sure none of the __asan_gen_ global strings end up in the symbol table, add a test.

This should fix http://llvm.org/bugs/show_bug.cgi?id=17976
Another test checking for the global variables' locations and prefixes on Darwin will be committed separately.


Added:
    compiler-rt/trunk/lib/asan/lit_tests/TestCases/no_asan_gen_globals.c   (with props)

Added: compiler-rt/trunk/lib/asan/lit_tests/TestCases/no_asan_gen_globals.c
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/asan/lit_tests/TestCases/no_asan_gen_globals.c?rev=198017&view=auto
==============================================================================
--- compiler-rt/trunk/lib/asan/lit_tests/TestCases/no_asan_gen_globals.c (added)
+++ compiler-rt/trunk/lib/asan/lit_tests/TestCases/no_asan_gen_globals.c Wed Dec 25 08:22:15 2013
@@ -0,0 +1,7 @@
+// Make sure __asan_gen_* strings do not end up in the symbol table.
+
+// RUN: %clang_asan %s -o %t.exe
+// RUN: nm %t.exe | grep __asan_gen_ || exit 0
+
+int x, y, z;
+int main() { return 0; }

Propchange: compiler-rt/trunk/lib/asan/lit_tests/TestCases/no_asan_gen_globals.c
------------------------------------------------------------------------------
    svn:eol-style = LF





More information about the llvm-commits mailing list