commit:     2f4654486392f02a8cead3f7f4b5fc475f084df0
Author:     Sergei Trofimovich <slyfox <AT> gentoo <DOT> org>
AuthorDate: Sun Feb 10 23:37:08 2019 +0000
Commit:     Sergei Trofimovich <slyfox <AT> gentoo <DOT> org>
CommitDate: Sun Feb 10 23:47:38 2019 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2f465448

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 <AT> gentoo.org>

 eclass/toolchain-glibc.eclass | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/eclass/toolchain-glibc.eclass b/eclass/toolchain-glibc.eclass
index 6698f2045e2..81d494c6fd5 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

Reply via email to