summaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
authorSergei Trofimovich <slyfox@gentoo.org>2019-02-10 23:37:08 +0000
committerSergei Trofimovich <slyfox@gentoo.org>2019-02-10 23:47:38 +0000
commit2f4654486392f02a8cead3f7f4b5fc475f084df0 (patch)
tree8706f8e06b289f46caf40a942ae9c05c09821f29 /eclass
parentprofiles: arm: Consolidate kde package.use.stable.mask entries (diff)
downloadgentoo-2f4654486392f02a8cead3f7f4b5fc475f084df0.tar.gz
gentoo-2f4654486392f02a8cead3f7f4b5fc475f084df0.tar.bz2
gentoo-2f4654486392f02a8cead3f7f4b5fc475f084df0.zip
toolchain-glibc.eclass: disable stack protector on m68k
setjmp() clobbers 'a5' register by stack protector prologue. Bug: https://sourceware.org/PR24202 Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
Diffstat (limited to 'eclass')
-rw-r--r--eclass/toolchain-glibc.eclass5
1 files changed, 5 insertions, 0 deletions
diff --git a/eclass/toolchain-glibc.eclass b/eclass/toolchain-glibc.eclass
index 6698f2045e22..81d494c6fd53 100644
--- a/eclass/toolchain-glibc.eclass
+++ b/eclass/toolchain-glibc.eclass
@@ -842,6 +842,11 @@ glibc_do_configure() {
if version_is_at_least 2.25 ; then
case ${CTARGET} in
+ m68k*)
+ # setjmp() is not compatible with stack protection:
+ # https://sourceware.org/PR24202
+ myconf+=( --enable-stack-protector=no )
+ ;;
mips*)
# dlopen() detects stack smash on mips n32 ABI.
# Cause is unknown: https://bugs.gentoo.org/640130