From mboxrd@z Thu Jan 1 00:00:00 1970 From: Michael Tremer To: development@lists.ipfire.org Subject: [PATCH 42/62] make.sh: Remove -mindirect-branch=thunk and -mfunction-return=thunk as default Date: Sun, 16 Aug 2020 10:29:33 +0000 Message-ID: <20200816102953.3881-42-michael.tremer@ipfire.org> In-Reply-To: <20200816102953.3881-1-michael.tremer@ipfire.org> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============2894725309673062210==" List-Id: --===============2894725309673062210== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable 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 --- make.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/make.sh b/make.sh index 799aeee66..1a1960674 100755 --- a/make.sh +++ b/make.sh @@ -146,14 +146,14 @@ configure_build() { BUILDTARGET=3D"${build_arch}-unknown-linux-gnu" CROSSTARGET=3D"${build_arch}-cross-linux-gnu" BUILD_PLATFORM=3D"x86" - CFLAGS_ARCH=3D"-m64 -mindirect-branch=3Dthunk -mfunction-return=3Dthunk -= mtune=3Dgeneric" + CFLAGS_ARCH=3D"-m64 -mtune=3Dgeneric" ;; =20 i586) BUILDTARGET=3D"${build_arch}-pc-linux-gnu" CROSSTARGET=3D"${build_arch}-cross-linux-gnu" BUILD_PLATFORM=3D"x86" - CFLAGS_ARCH=3D"-march=3Di586 -mindirect-branch=3Dthunk -mfunction-return= =3Dthunk -mtune=3Dgeneric -fomit-frame-pointer" + CFLAGS_ARCH=3D"-march=3Di586 -mtune=3Dgeneric -fomit-frame-pointer" ;; =20 aarch64) --=20 2.20.1 --===============2894725309673062210==--