From: Sergei Trofimovich Date: Sun, 10 Feb 2019 23:37:08 +0000 (+0000) Subject: toolchain-glibc.eclass: disable stack protector on m68k X-Git-Url: http://git.tremily.us/gitweb.cgi?a=commitdiff_plain;h=2f4654486392f02a8cead3f7f4b5fc475f084df0;p=gentoo.git 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 --- 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