================
@@ -38,14 +39,18 @@ static void CheckUnwind() {
static void Initialize() {
if (LIKELY(copyprof_is_initialized))
return;
+ SanitizerToolName = "CopyProf";
CHECK(!copyprof_init_is_running &&
"BUG: CopyProf Initialize() must not call itself.");
copyprof_init_is_running = true;
CacheBinaryName();
+ // CopyProf uses interception so ensure we're not statically linked.
+ __interception::DoesNotSupportStaticLinking();
SetCheckUnwindCallback(&CheckUnwind);
InitializePlatformEarly();
SetCommonFlagsDefaults();
InitializeCommonFlags();
+ InitializeInterceptors();
----------------
newgre wrote:
memprof, asan, tsan, msan all use that same ordering it seems: interceptors
first, then shadow memory.
https://github.com/llvm/llvm-project/pull/232851
_______________________________________________
llvm-branch-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits