llvm-6502/test/Instrumentation/AddressSanitizer
Alexey Samsonov 1b6333c47e [ASan] Print exact source location of global variables in error reports.
See https://code.google.com/p/address-sanitizer/issues/detail?id=299 for the
original feature request.

Introduce llvm.asan.globals metadata, which Clang (or any other frontend)
may use to report extra information about global variables to ASan
instrumentation pass in the backend. This metadata replaces
llvm.asan.dynamically_initialized_globals that was used to detect init-order
bugs. llvm.asan.globals contains the following data for each global:
  1) source location (file/line/column info);
  2) whether it is dynamically initialized;
  3) whether it is blacklisted (shouldn't be instrumented).

Source location data is then emitted in the binary and can be picked up
by ASan runtime in case it needs to print error report involving some global.
For example:

  0x... is located 4 bytes to the right of global variable 'C::array' defined in '/path/to/file:17:8' (0x...) of size 40

These source locations are printed even if the binary doesn't have any
debug info.

This is an ABI-breaking change. ASan initialization is renamed to
__asan_init_v4(). Pre-built libraries compiled with older Clang will not work
with the fresh runtime.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@212188 91177308-0d34-0410-b5e6-96231b3b80d8
2014-07-02 16:54:41 +00:00
..
X86 Reduce verbiage of lit.local.cfg files 2014-06-09 22:42:55 +00:00
adaptive_global_redzones.ll
asan-vs-gvn.ll
basic.ll [asan] properly instrument memory accesses that have small alignment (smaller than min(8,size)) by making two checks instead of one. This may slowdown some cases, e.g. long long on 32-bit or wide loads produced after loop unrolling. The benefit is higher sencitivity. 2014-05-23 11:52:07 +00:00
coverage-dbg.ll [asancov] Fix coverage line info some more. 2014-06-05 14:34:45 +00:00
coverage.ll [asan] Fix coverage instrumentation with -asan-globals=0. 2014-06-03 14:16:00 +00:00
debug_info.ll Debug info: split out complex DIVariable address expressions into a 2014-06-30 17:17:35 +00:00
do-not-instrument-internal-globals.ll
do-not-instrument-llvm-metadata.ll IR: Add COMDATs to the IR 2014-06-27 18:19:56 +00:00
do-not-touch-odr-global.ll
do-not-touch-threadlocal.ll
freebsd.ll
global_metadata.ll [ASan] Print exact source location of global variables in error reports. 2014-07-02 16:54:41 +00:00
instrument_global.ll [ASan] Print exact source location of global variables in error reports. 2014-07-02 16:54:41 +00:00
instrument_initializer_metadata.ll [ASan] Print exact source location of global variables in error reports. 2014-07-02 16:54:41 +00:00
instrument_load_then_store.ll
instrument-no-return.ll
instrumentation-with-call-threshold.ll [asan] properly instrument memory accesses that have small alignment (smaller than min(8,size)) by making two checks instead of one. This may slowdown some cases, e.g. long long on 32-bit or wide loads produced after loop unrolling. The benefit is higher sencitivity. 2014-05-23 11:52:07 +00:00
keep-instrumented_functions.ll
lifetime-uar.ll
lifetime.ll Remove top-level Clang -fsanitize= flags for optional ASan features. 2014-06-13 17:53:44 +00:00
stack_layout.ll
stack-poisoning.ll Remove top-level Clang -fsanitize= flags for optional ASan features. 2014-06-13 17:53:44 +00:00
test64.ll [asan] properly instrument memory accesses that have small alignment (smaller than min(8,size)) by making two checks instead of one. This may slowdown some cases, e.g. long long on 32-bit or wide loads produced after loop unrolling. The benefit is higher sencitivity. 2014-05-23 11:52:07 +00:00