[asan] Enable -asan-use-private-alias on Darwin/Mach-O, add test for ODR false positi...
authorKuba Brecka <kuba.brecka@gmail.com>
Wed, 14 Sep 2016 14:09:18 +0000 (14:09 +0000)
committerKuba Brecka <kuba.brecka@gmail.com>
Wed, 14 Sep 2016 14:09:18 +0000 (14:09 +0000)
commit410dbbd296dcefcd22ee2eac1e7a99f6d377025b
treec747c0cc5665e8413a4fe828a97b70d3c9a85870
parentba325e3a732423ffa14e0346e491434b04d78016
[asan] Enable -asan-use-private-alias on Darwin/Mach-O, add test for ODR false positive with LTO (compiler-rt part)

The '-asan-use-private-alias’ option (disabled by default) option is currently only enabled for Linux and ELF, but it also works on Darwin and Mach-O. This option also fixes a known problem with LTO on Darwin (https://github.com/google/sanitizers/issues/647). This patch enables the support for Darwin (but still keeps it off by default) and adds the LTO test case.

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

llvm-svn: 281472
compiler-rt/test/asan/TestCases/Darwin/odr-lto.cc [new file with mode: 0644]
compiler-rt/test/lit.common.cfg
compiler-rt/test/safestack/lit.cfg