[ASan] Use debuginfo for symbolization.
authorMitch Phillips <31459023+hctim@users.noreply.github.com>
Fri, 10 Jun 2022 23:26:45 +0000 (16:26 -0700)
committerMitch Phillips <31459023+hctim@users.noreply.github.com>
Wed, 15 Jun 2022 22:36:36 +0000 (15:36 -0700)
commitf0ab8d90d47c4b1e0ea73e655777b4bc35e3f609
tree459c5965035e101d0af85f091dba26fcefc5ee65
parent2815bacc9157ab09d7bf049d88cf1c9716a334ba
[ASan] Use debuginfo for symbolization.

Hint: Looking here because your manual invocation of something in
'check-asan' broke? You need a new symbolizer (after D123538).

An upcoming patch will remove the internal metadata for global
variables. With D123534 and D123538, clang now emits DWARF debug info
for constant strings (the only global variable type it was missing), and
llvm-symbolizer is now able to symbolize all global variable addresses
(where previously it wouldn't give you the file:line information).

Move ASan's runtime over from the internal metadata to DWARF.

Differential Revision: https://reviews.llvm.org/D127552
compiler-rt/lib/asan/asan_globals.cpp
compiler-rt/lib/asan/asan_interface_internal.h
compiler-rt/lib/sanitizer_common/sanitizer_symbolizer_libcdep.cpp
compiler-rt/test/asan/TestCases/Linux/odr-violation.cpp
compiler-rt/test/asan/TestCases/global-location.cpp