HomePhabricator

[sanitizer] Use -Wl,-z,global on Android for sanitizers except UBsan

Description

[sanitizer] Use -Wl,-z,global on Android for sanitizers except UBsan

Summary:
This essentially reverts r337010 since it breaks UBSan, which is used
for a few platform libraries. The "-z global" flag is now added for
Scudo as well. The only other sanitizer shared libraries are for asan
and hwasan, which have also been reinstated to use the global flag.

Reviewers: cryptoad, eugenis

Reviewed By: cryptoad

Subscribers: kubamracek, mgorny, delcypher, #sanitizers, nickdesaulniers, chh, kongyi, pirama, llvm-commits

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

Details

Committed
srhinesOct 2 2018, 9:19 AM
Reviewer
cryptoad
Differential Revision
D52770: [sanitizer] Use -Wl,-z,global on Android for sanitizers except UBsan
Parents
rL343598: Delete /lldb/tmp directory created in r324484.
Branches
Unknown
Tags
Unknown