Make lsan-force-options and lsan-build-env more usable. Factor out common
authorIvan Baravy <i.baravy@samsung.com>
Mon, 27 Feb 2017 08:07:23 +0000 (11:07 +0300)
committerIvan Baravy <i.baravy@samsung.com>
Mon, 27 Feb 2017 08:07:23 +0000 (11:07 +0300)
commit6b3e63486ce3712ca2d6025785c50053326d8e10
tree042d4d98336e31b5280975b94fff01bb5f5bca15
parentead8b34418bb7485ca234c01d7950f9c7ec32df8
Make lsan-force-options and lsan-build-env more usable. Factor out common
code from {A, UB}San to sanitizer_common code.

Add -fno-omit-frame-pointer -U_FORTIFY_SOURCE to lsan-force-options because
LSan heavily relies on frame pointers. Disable LSan in QEMU builds through
LSAN_OPTIONS file. Refactor Tizen specific patches in ASan and UBSan.
libsanitizer/asan/asan_flags.cc
libsanitizer/asan/asan_rtl.cc
libsanitizer/lsan/lsan.cc
libsanitizer/sanitizer_common/sanitizer_common.cc
libsanitizer/sanitizer_common/sanitizer_common.h
libsanitizer/sanitizer_common/sanitizer_libc.cc
libsanitizer/sanitizer_common/sanitizer_libc.h
libsanitizer/ubsan/ubsan_flags.cc