aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Frontend/CompilerInvocation.cpp
diff options
context:
space:
mode:
authorAlvin Wong <alvin@alvinhc.com>2023-03-26 19:07:06 +0800
committerAlvin Wong <alvin@alvinhc.com>2023-03-29 19:04:35 +0800
commit81358e9193a9282372c145b63042b2852d3afa18 (patch)
treebb1bc747c7a50ce38f7cea8c0241011567746542 /clang/lib/Frontend/CompilerInvocation.cpp
parent2abdc0f7dfd807dc7841506f949fc6cbdd8b3313 (diff)
downloadllvm-81358e9193a9282372c145b63042b2852d3afa18.zip
llvm-81358e9193a9282372c145b63042b2852d3afa18.tar.gz
llvm-81358e9193a9282372c145b63042b2852d3afa18.tar.bz2
[clang][MinGW] Add asan DLL lib before other libs and objects
As stated in https://github.com/llvm/llvm-project/issues/61685, by passing LLD the import lib of the asan DLL first, the asan DLL will be listed as the first entry in the Import Directory Table, making it be loaded first before other user DLLs. This allows asan to be initialized as early as possible to increase its instrumentation coverage to include other DLLs not built with asan. This also avoids some false asan reports on `realloc` for memory allocated during initialization of user DLLs being loaded earlier than asan, because after this change they will be loaded later than asan. Differential Revision: https://reviews.llvm.org/D146908
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions