Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/core/binutils
diff options
context:
space:
mode:
authorAndreas Baumann <mail@andreasbaumann.cc>2018-09-08 13:59:29 +0000
committerAndreas Baumann <mail@andreasbaumann.cc>2018-09-08 13:59:29 +0000
commit0e5961e6e0038b2d338c1ecea8db71f1155276ac (patch)
tree9ae0d8cbf163f79c9705134d5d6b41da3263d6fd /core/binutils
parentcf8591cf15913aa4cfbe310fbef49047d69edaad (diff)
core/binutils: disable CET for i486
Diffstat (limited to 'core/binutils')
-rw-r--r--core/binutils/PKGBUILD11
1 files changed, 11 insertions, 0 deletions
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