[PATCH] D92078: [asan] Default to -asan-use-private-alias=1
Fangrui Song via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Dec 4 15:09:46 PST 2020
MaskRay added inline comments.
================
Comment at: compiler-rt/test/asan/TestCases/Linux/odr-vtable.cpp:4-5
-// RUN: %clangxx_asan -fno-rtti -DBUILD_SO1 -fPIC -shared %s -o %dynamiclib1
-// RUN: %clangxx_asan -fno-rtti -DBUILD_SO2 -fPIC -shared %s -o %dynamiclib2
+// RUN: %clangxx_asan -fno-rtti -DBUILD_SO1 -fPIC -shared -mllvm -asan-use-private-alias=0 %s -o %dynamiclib1
+// RUN: %clangxx_asan -fno-rtti -DBUILD_SO2 -fPIC -shared -mllvm -asan-use-private-alias=0 %s -o %dynamiclib2
// RUN: %clangxx_asan -fno-rtti %s %ld_flags_rpath_exe1 %ld_flags_rpath_exe2 -o %t
----------------
vitalybuka wrote:
> Is this going to work?
Yes. -asan-use-odr-indicator=1 adds a named global symbol which can detect such issues.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D92078/new/
https://reviews.llvm.org/D92078
More information about the llvm-commits
mailing list