hanchenye-llvm-project/compiler-rt
Alexey Samsonov 15c9669615 [ASan] Collect unmangled names of global variables in Clang to print them in error reports.
Currently ASan instrumentation pass creates a string with global name
for each instrumented global (to include global names in the error report). Global
name is already mangled at this point, and we may not be able to demangle it
at runtime (e.g. there is no __cxa_demangle on Android).

Instead, create a string with fully qualified global name in Clang, and pass it
to ASan instrumentation pass in llvm.asan.globals metadata. If there is no metadata
for some global, ASan will use the original algorithm.

This fixes https://code.google.com/p/address-sanitizer/issues/detail?id=264.

llvm-svn: 212872
2014-07-12 00:42:52 +00:00
..
SDKs Fix typos 2014-05-15 02:22:34 +00:00
android Move Android ucontext.h out of third_party. 2014-03-18 08:32:14 +00:00
cmake [Sanitizers Win] Move duplicate Windows-specific compiler flags to a common CMake variable 2014-05-30 12:42:57 +00:00
include Generalize sanitizer allocator public interface. 2014-07-07 17:39:31 +00:00
lib [ASan] Improve ODR-violation error reports. 2014-07-11 23:34:26 +00:00
make Fix configure+make build of profile runtime library 2014-07-10 00:53:20 +00:00
test [ASan] Collect unmangled names of global variables in Clang to print them in error reports. 2014-07-12 00:42:52 +00:00
unittests [ASan] Optional support for dynamic ASan runtime on Linux. 2014-04-01 13:16:30 +00:00
www
.arcconfig Update arc config to new domain. 2014-04-07 10:22:41 +00:00
.gitignore Add vim swap files to .gitignore 2014-03-20 19:44:33 +00:00
CMakeLists.txt [asan] adding support of 32-bit address sanitizer for MIPS 2014-06-24 12:08:18 +00:00
CODE_OWNERS.TXT
CREDITS.TXT Add Guan-Hong Liu. 2014-06-16 08:38:19 +00:00
LICENSE.TXT Move Android ucontext.h out of third_party. 2014-03-18 08:32:14 +00:00
Makefile
README.txt Moved the builtins documentation to lib/builtins/ 2014-05-28 23:09:45 +00:00

README.txt

Compiler-RT
================================

This directory and its subdirectories contain source code for the compiler
support routines.

Compiler-RT is open source software. You may freely distribute it under the
terms of the license agreement found in LICENSE.txt.

================================