From: Michael Tremer Date: Fri, 7 Aug 2020 11:50:00 +0000 (+0000) Subject: make.sh: Remove -mindirect-branch=thunk and -mfunction-return=thunk as default X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=9bd3cc538f9d9918bd6c2e7c1900a19107171a6e;p=people%2Fms%2Fipfire-2.x.git make.sh: Remove -mindirect-branch=thunk and -mfunction-return=thunk as default I cannot find any evidence that this is helpful and no other distribution has this as default. Packages that are vulnerable to these attacks (i.e. the kernel) add these flags as appropriate automatically. Signed-off-by: Michael Tremer --- diff --git a/make.sh b/make.sh index a2e54f2339..274838b041 100755 --- a/make.sh +++ b/make.sh @@ -146,14 +146,14 @@ configure_build() { BUILDTARGET="${build_arch}-unknown-linux-gnu" CROSSTARGET="${build_arch}-cross-linux-gnu" BUILD_PLATFORM="x86" - CFLAGS_ARCH="-m64 -mindirect-branch=thunk -mfunction-return=thunk -mtune=generic" + CFLAGS_ARCH="-m64 -mtune=generic" ;; i586) BUILDTARGET="${build_arch}-pc-linux-gnu" CROSSTARGET="${build_arch}-cross-linux-gnu" BUILD_PLATFORM="x86" - CFLAGS_ARCH="-march=i586 -mindirect-branch=thunk -mfunction-return=thunk -mtune=generic -fomit-frame-pointer" + CFLAGS_ARCH="-march=i586 -mtune=generic -fomit-frame-pointer" ;; aarch64)