projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
af0ead4
)
riscv/purgatory: Disable CFI
author
Sami Tolvanen
<samitolvanen@google.com>
Mon, 10 Jul 2023 18:35:50 +0000
(18:35 +0000)
committer
Palmer Dabbelt
<palmer@rivosinc.com>
Wed, 23 Aug 2023 21:16:40 +0000
(14:16 -0700)
Filter out CC_FLAGS_CFI when CONFIG_CFI_CLANG.
Reviewed-by: Kees Cook <keescook@chromium.org>
Tested-by: Nathan Chancellor <nathan@kernel.org>
Signed-off-by: Sami Tolvanen <samitolvanen@google.com>
Link:
https://lore.kernel.org/r/20230710183544.999540-13-samitolvanen@google.com
Signed-off-by: Palmer Dabbelt <palmer@rivosinc.com>
arch/riscv/purgatory/Makefile
patch
|
blob
|
history
diff --git
a/arch/riscv/purgatory/Makefile
b/arch/riscv/purgatory/Makefile
index dc20e166983e3be9257b8d9a2b4d71423a8eff92..9e6476719abbbb4e9206cd89292be7f25261a5b6 100644
(file)
--- a/
arch/riscv/purgatory/Makefile
+++ b/
arch/riscv/purgatory/Makefile
@@
-77,6
+77,10
@@
ifdef CONFIG_STACKPROTECTOR_STRONG
PURGATORY_CFLAGS_REMOVE += -fstack-protector-strong
endif
+ifdef CONFIG_CFI_CLANG
+PURGATORY_CFLAGS_REMOVE += $(CC_FLAGS_CFI)
+endif
+
CFLAGS_REMOVE_purgatory.o += $(PURGATORY_CFLAGS_REMOVE)
CFLAGS_purgatory.o += $(PURGATORY_CFLAGS)