llvm-project/compiler-rt/lib/hwasan
Kostya Kortchinsky 4a547fb62d [sanitizer] Use -Wl,-z,global on Android
Summary:
Use `-Wl,-z,global` for all Sanitizer shared libraries on
Android. We want them to be in the global group
(https://android.googlesource.com/platform/bionic/+/master/android-changes-for-ndk-developers.md#changes-to-library-search-order)
to avoid any alloc/dealloc mismatch between the libc allocator & said library.

`audioserver` was one of the binary that exhibited the problem with Scudo,
this seems to fix it.

[edited for accuracy]

Reviewers: eugenis, alekseyshl

Reviewed By: eugenis

Subscribers: kubamracek, srhines, mgorny, delcypher, #sanitizers, llvm-commits

Differential Revision: https://reviews.llvm.org/D49198

llvm-svn: 337010
2018-07-13 15:31:05 +00:00
..
.clang-format [sanitizer] Remove unneeded blank lines 2018-05-09 00:44:26 +00:00
CMakeLists.txt [sanitizer] Use -Wl,-z,global on Android 2018-07-13 15:31:05 +00:00
hwasan.cc [HWASan] Initalize shadow earler. 2018-06-25 17:27:13 +00:00
hwasan.h [HWASan] Report proper error on allocator failures instead of CHECK(0)-ing 2018-06-07 23:33:33 +00:00
hwasan.syms.extra
hwasan_allocator.cc [HWASan] Report proper error on allocator failures instead of CHECK(0)-ing 2018-06-07 23:33:33 +00:00
hwasan_allocator.h
hwasan_blacklist.txt
hwasan_dynamic_shadow.cc [HWASan] Add files missing in r330624 2018-04-23 19:05:12 +00:00
hwasan_dynamic_shadow.h [HWASan] Add files missing in r330624 2018-04-23 19:05:12 +00:00
hwasan_flags.h
hwasan_flags.inc [hwasan] An option to disable tag randomization. 2018-01-10 19:36:10 +00:00
hwasan_interceptors.cc [HWASan] Report proper error on allocator failures instead of CHECK(0)-ing 2018-06-07 23:33:33 +00:00
hwasan_interface_internal.h [HWASan] Introduce non-zero based and dynamic shadow memory (compiler-rt). 2018-04-23 18:19:23 +00:00
hwasan_linux.cc [HWASan] Report proper error on allocator failures instead of CHECK(0)-ing 2018-06-07 23:33:33 +00:00
hwasan_mapping.h [HWASan] Use dynamic shadow memory on Android only. 2018-04-24 00:17:02 +00:00
hwasan_new_delete.cc [HWASan] Report proper error on allocator failures instead of CHECK(0)-ing 2018-06-07 23:33:33 +00:00
hwasan_poisoning.cc [HWASan] Introduce non-zero based and dynamic shadow memory (compiler-rt). 2018-04-23 18:19:23 +00:00
hwasan_poisoning.h
hwasan_report.cc [HWASan] Report proper error on allocator failures instead of CHECK(0)-ing 2018-06-07 23:33:33 +00:00
hwasan_report.h [HWASan] Report proper error on allocator failures instead of CHECK(0)-ing 2018-06-07 23:33:33 +00:00
hwasan_thread.cc [HWASan] Introduce non-zero based and dynamic shadow memory (compiler-rt). 2018-04-23 18:19:23 +00:00
hwasan_thread.h [hwasan] Add heap tag randomization. 2018-01-03 21:42:28 +00:00