Skip to content

Commit 6043274

Browse files
committed
linuxkm/Kbuild: revert change to base PIE_FLAGS -- we need -fno-stack-protector to avoid compiler-generated references to __stack_chk_fail.
1 parent c26f6de commit 6043274

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

linuxkm/Kbuild

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,9 @@ $(obj)/wolfcrypt/test/test.o: ccflags-y += -DNO_MAIN_DRIVER -DWOLFSSL_NO_OPTIONS
101101
$(obj)/wolfcrypt/src/aes.o: ccflags-y = $(WOLFSSL_CFLAGS) $(WOLFSSL_CFLAGS_YES_VECTOR_INSNS)
102102

103103
ifeq "$(ENABLED_LINUXKM_PIE)" "yes"
104-
PIE_FLAGS := -fPIE -fno-toplevel-reorder
104+
# note, we need -fno-stack-protector to avoid references to
105+
# "__stack_chk_fail" from the wolfCrypt container.
106+
PIE_FLAGS := -fPIE -fno-stack-protector -fno-toplevel-reorder
105107
PIE_SUPPORT_FLAGS := -DUSE_WOLFSSL_LINUXKM_PIE_REDIRECT_TABLE
106108
ifeq "$(KERNEL_ARCH_X86)" "yes"
107109
PIE_FLAGS += -mcmodel=small

0 commit comments

Comments
 (0)