From e67493f57262862ae2bd4fc5d1d1f552676d815f Mon Sep 17 00:00:00 2001 From: Fangrui Song Date: Wed, 19 Apr 2023 13:10:46 -0700 Subject: [PATCH] [Driver] -fsanitize=kcfi doesn't need RequiresPIE As mentioned on D148671: this is unneeded. This commit is a no-op for most Linux builds since CLANG_DEFAULT_PIE_ON_LINUX defaults to 1. --- clang/lib/Driver/SanitizerArgs.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/clang/lib/Driver/SanitizerArgs.cpp b/clang/lib/Driver/SanitizerArgs.cpp index 3c24089..d0dd294 100644 --- a/clang/lib/Driver/SanitizerArgs.cpp +++ b/clang/lib/Driver/SanitizerArgs.cpp @@ -39,7 +39,7 @@ static const SanitizerMask NotAllowedWithTrap = SanitizerKind::Vptr; static const SanitizerMask NotAllowedWithMinimalRuntime = SanitizerKind::Function | SanitizerKind::Vptr; static const SanitizerMask RequiresPIE = - SanitizerKind::DataFlow | SanitizerKind::Scudo | SanitizerKind::KCFI; + SanitizerKind::DataFlow | SanitizerKind::Scudo; static const SanitizerMask NeedsUnwindTables = SanitizerKind::Address | SanitizerKind::HWAddress | SanitizerKind::Thread | SanitizerKind::Memory | SanitizerKind::DataFlow; -- 2.7.4