x86/vdso: fix CE on non-compatible cflags
Subsystems (3)
PATCH 1/1 x86/vdso: fix CE on non-compatible cflags
I am getting some compilation error on when using CONFIG_X86_32 kernel configuration
arch/x86/entry/vdso/vdso32/../vclock_gettime.c:29:1:
error: ‘-mindirect-branch’ and ‘-fcf-protection’ are not compatible
add -fcf-protection=none when CONFIG_RETPOLINE=y
--- arch/x86/entry/vdso/Makefile | 1 + 1 file changed, 1 insertion(+)
arch/x86/entry/vdso/Makefile +1 -0
@@ -159,6 +159,7 @@ KBUILD_CFLAGS_32 += -DDISABLE_BRANCH_PROFILING ifdef CONFIG_RETPOLINE ifneq ($(RETPOLINE_VDSO_CFLAGS),) KBUILD_CFLAGS_32 += $(RETPOLINE_VDSO_CFLAGS) + KBUILD_CFLAGS_32 += $(call cc-option,-fcf-protection=none) endif endif
Signature · 1 line
2.25.1
Borislav Petkov
maintainerQuoted 2 lines · Tong Zhang
I am getting some compilation error on when using
CONFIG_X86_32kernel configuration
With an ubuntu gcc?
Does this branch work:
https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git/log/?h=x86/urgent
?
Thx.
Signature · 4 lines
Regards/Gruss,
Boris.
https://people.kernel.org/tglx/notes-about-netiquetteHi Borislav,
I am using ubuntu gcc, the x86-urgent branch works Thanks,
- Tong
Quoted 19 lines · Borislav Petkov
Quoted 2 lines · Tong Zhang
I am getting some compilation error on when using
CONFIG_X86_32kernel configurationWith an ubuntu gcc?
Does this branch work:https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git/log/?h=x86/urgent
?
Thx.
--
Regards/Gruss,
Boris.