Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/core/binutils
diff options
context:
space:
mode:
Diffstat (limited to 'core/binutils')
-rw-r--r--core/binutils/PKGBUILD15
1 files changed, 14 insertions, 1 deletions
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