From 0f6f91dee305ad0b143bf13becc2882eda4d977a Mon Sep 17 00:00:00 2001 From: Zihao Yu Date: Sun, 11 Oct 2020 14:42:32 +0800 Subject: [PATCH] x86: remove endbr32 in Ubuntu 20.04 with a CPU newer than Comet Lake --- scripts/isa/x86.mk | 1 + 1 file changed, 1 insertion(+) diff --git a/scripts/isa/x86.mk b/scripts/isa/x86.mk index 0df1d41..97cdd22 100644 --- a/scripts/isa/x86.mk +++ b/scripts/isa/x86.mk @@ -1,3 +1,4 @@ CFLAGS += -m32 -fno-pic -fno-omit-frame-pointer -march=i386 +CFLAGS += -fcf-protection=none # remove endbr32 in Ubuntu 20.04 with a CPU newer than Comet Lake ASFLAGS += -m32 -fno-pic LDFLAGS += -melf_i386