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.
Details
Details
- Reviewers
kcc m.ostapenko eugenis - Commits
- rGa1ea64a0443c: [asan] Enable -asan-use-private-alias on Darwin/Mach-O, add test for ODR false…
rG410dbbd296dc: [asan] Enable -asan-use-private-alias on Darwin/Mach-O, add test for ODR false…
rCRT281472: [asan] Enable -asan-use-private-alias on Darwin/Mach-O, add test for ODR false…
rL281472: [asan] Enable -asan-use-private-alias on Darwin/Mach-O, add test for ODR…
rL281470: [asan] Enable -asan-use-private-alias on Darwin/Mach-O, add test for ODR…
Diff Detail
Diff Detail
- Repository
- rL LLVM
Event Timeline
Comment Actions
I'm really glad that you found this useful! I'm not good with Darwin and Mach-OS, so could you tell me whether it has something similar to -fvisibility=hidden stuff?