[all-commits] [llvm/llvm-project] fc4c87: [Darwin][ASan] Fix "interceptor working?" check fo...
Julian Lettner via All-commits
all-commits at lists.llvm.org
Wed Apr 6 15:50:57 PDT 2022
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: fc4c872d8f1e0c3409ba1fbc4761ffc984c7fdbd
https://github.com/llvm/llvm-project/commit/fc4c872d8f1e0c3409ba1fbc4761ffc984c7fdbd
Author: Blue Gaston <bgaston2 at apple.com>
Date: 2022-04-06 (Wed, 06 Apr 2022)
Changed paths:
M compiler-rt/lib/sanitizer_common/sanitizer_mac.cpp
Log Message:
-----------
[Darwin][ASan] Fix "interceptor working?" check for DriverKit platform
The previous check for interceptors used `pthread_create()` which is not
available on DriverKit. We need an intercepted symbol that satisfies
the following constraints:
- Symbol is available in DriverKit
- Symbol is provided by simulator runtime dylibs (`dlsym()` fails to
look up host-provided symbols)
`puts()` satisfies all of the above constraints.
rdar://87895539
Reviewed By: yln
Differential Revision: https://reviews.llvm.org/D123245
More information about the All-commits
mailing list