OSDN Git Service

[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:06:33 +0000 (14:06 +0000)
committerKuba Brecka <kuba.brecka@gmail.com>
Wed, 14 Sep 2016 14:06:33 +0000 (14:06 +0000)
commit62660f0e5a43f0d408d5075e7220c7fb29bec911
treecf95ace672fe014d9fa6913f096e5a8d7d5ddedf
parent9502e5be6f671ec0d6f24e8586cc20faa77fbbcb
[asan] Enable -asan-use-private-alias on Darwin/Mach-O, add test for ODR false positive with LTO (llvm 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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@281470 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Instrumentation/AddressSanitizer.cpp