From 0e5961e6e0038b2d338c1ecea8db71f1155276ac Mon Sep 17 00:00:00 2001 From: Andreas Baumann Date: Sat, 8 Sep 2018 13:59:29 +0000 Subject: core/binutils: disable CET for i486 --- core/binutils/PKGBUILD | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'core/binutils/PKGBUILD') diff --git a/core/binutils/PKGBUILD b/core/binutils/PKGBUILD index a3f00f0f..711a8ed0 100644 --- a/core/binutils/PKGBUILD +++ b/core/binutils/PKGBUILD @@ -25,3 +25,14 @@ eval "$( /0004-PR22868/a patch -p1 -i ${srcdir}/binutils-2.30-glibc-segfault.patch ' )" + +# i486-specific +if [ "${CARCH}" = "i486" ]; then + # disable CET (Control Flow instructions endbr32/enbr64) + eval "$( + declare -f build | \ + sed ' + s,configure",configure" --disable-cet, + ' + )" +fi -- cgit v1.2.3-70-g09d2