Make lsan-force-options and lsan-build-env more usable. Factor out common 55/88555/3
authorMaxim Ostapenko <m.ostapenko@samsung.com>
Tue, 12 Jul 2016 07:26:08 +0000 (10:26 +0300)
committerDongkyun Son <dongkyun.s@samsung.com>
Tue, 11 Oct 2016 12:46:07 +0000 (05:46 -0700)
commit28a0437c8669094addc3c23a9005f241ec75a8fa
tree27a658857f2b254a858506b937db74ab5f692f0f
parent38cac74303f3acdf3e897ca7fbaf1a80b9f1c8ec
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.

Change-Id: I95f59243352e75d6cd0eae22e7aaa02ab0e96cfc
Signed-off-by: Maxim Ostapenko <m.ostapenko@samsung.com>
12 files changed:
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
packaging/LSAN_OPTIONS [new file with mode: 0644]
packaging/gcc-aarch64.spec
packaging/gcc-armv7l.spec
packaging/linaro-gcc.spec