From: Michael Tremer Date: Tue, 11 Jul 2023 09:11:28 +0000 (+0000) Subject: make.sh: x86_64: Enable CET full X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=ffc12e0dbc340aa90359166e7dd893dd660191da;p=people%2Fms%2Fipfire-2.x.git make.sh: x86_64: Enable CET full -fcf-protection enables Indirect Branch Tracking, which we have recently enabled in the kernel. We should enable this in userspace, too. I could not find out what GCC defaults to without any value, so this patch is explicitely enabling IBT for function returns, indirect function calls and indirect jumps. Signed-off-by: Michael Tremer --- diff --git a/make.sh b/make.sh index 57b6c6f155..f076040739 100755 --- a/make.sh +++ b/make.sh @@ -145,7 +145,7 @@ configure_build() { BUILDTARGET="${build_arch}-pc-linux-gnu" CROSSTARGET="${build_arch}-cross-linux-gnu" BUILD_PLATFORM="x86" - CFLAGS_ARCH="-m64 -mtune=generic -fcf-protection" + CFLAGS_ARCH="-m64 -mtune=generic -fcf-protection=full" ;; aarch64)