From 0d9dcdd38f57cf61c8c5c282e68c7c3d7d4bfc96 Mon Sep 17 00:00:00 2001 From: Andreas Baumann Date: Sun, 21 Jul 2019 08:58:48 +0200 Subject: core/binutils: trying to enable CET properly --- core/binutils/PKGBUILD | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/core/binutils/PKGBUILD b/core/binutils/PKGBUILD index 711a8ed0..71467e4b 100644 --- a/core/binutils/PKGBUILD +++ b/core/binutils/PKGBUILD @@ -32,7 +32,20 @@ if [ "${CARCH}" = "i486" ]; then eval "$( declare -f build | \ sed ' - s,configure",configure" --disable-cet, + s,configure",configure" --enable-cet=no, + ' + )" +else + # explicitely enable CET (Control Flow instructions endbr32/enbr64) + # avoid "corrupt GNU_PROPERTY_TYPE (5) size: 0" warnings, + # see: + # https://bbs.archlinux32.org/viewtopic.php?pid=6160#p6160 + # https://bugs.archlinux32.org/index.php?do=details&task_id=82 + # + eval "$( + declare -f build | \ + sed ' + s,configure",configure" --enable-cet=yes, ' )" fi -- cgit v1.2.3-70-g09d2