commit:     d74781e680bee416a48c648df1f8c6000da84e4d
Author:     Sergei Trofimovich <slyfox <AT> gentoo <DOT> org>
AuthorDate: Sun Feb 10 23:38:46 2019 +0000
Commit:     Sergei Trofimovich <slyfox <AT> gentoo <DOT> org>
CommitDate: Sun Feb 10 23:47:39 2019 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d74781e6

sys-libs/glibc: disable stack protector on m68k

setjmp() clobbers 'a5' register by stack protector prologue.

Bug: https://sourceware.org/PR24202
Package-Manager: Portage-2.3.59, Repoman-2.3.12
Signed-off-by: Sergei Trofimovich <slyfox <AT> gentoo.org>

 sys-libs/glibc/glibc-2.27-r6.ebuild | 5 +++++
 sys-libs/glibc/glibc-2.28-r5.ebuild | 5 +++++
 sys-libs/glibc/glibc-2.29.ebuild    | 5 +++++
 3 files changed, 15 insertions(+)

diff --git a/sys-libs/glibc/glibc-2.27-r6.ebuild 
b/sys-libs/glibc/glibc-2.27-r6.ebuild
index 668e6795b24..157ab8b051d 100644
--- a/sys-libs/glibc/glibc-2.27-r6.ebuild
+++ b/sys-libs/glibc/glibc-2.27-r6.ebuild
@@ -809,6 +809,11 @@ glibc_do_configure() {
        local myconf=()
 
        case ${CTARGET} in
+               m68k*)
+                       # setjmp() is not compatible with stack protection:
+                       # https://sourceware.org/PR24202
+                       myconf+=( --enable-stack-protector=no )
+                       ;;
                powerpc-*)
                        # Currently gcc on powerpc32 generates invalid code for
                        # __builtin_return_address(0) calls. Normally programs

diff --git a/sys-libs/glibc/glibc-2.28-r5.ebuild 
b/sys-libs/glibc/glibc-2.28-r5.ebuild
index 827b432313e..9087d26caaf 100644
--- a/sys-libs/glibc/glibc-2.28-r5.ebuild
+++ b/sys-libs/glibc/glibc-2.28-r5.ebuild
@@ -799,6 +799,11 @@ glibc_do_configure() {
        local myconf=()
 
        case ${CTARGET} in
+               m68k*)
+                       # setjmp() is not compatible with stack protection:
+                       # https://sourceware.org/PR24202
+                       myconf+=( --enable-stack-protector=no )
+                       ;;
                powerpc-*)
                        # Currently gcc on powerpc32 generates invalid code for
                        # __builtin_return_address(0) calls. Normally programs

diff --git a/sys-libs/glibc/glibc-2.29.ebuild b/sys-libs/glibc/glibc-2.29.ebuild
index 3089cdbb5f1..4ac98457b48 100644
--- a/sys-libs/glibc/glibc-2.29.ebuild
+++ b/sys-libs/glibc/glibc-2.29.ebuild
@@ -800,6 +800,11 @@ glibc_do_configure() {
        local myconf=()
 
        case ${CTARGET} in
+               m68k*)
+                       # setjmp() is not compatible with stack protection:
+                       # https://sourceware.org/PR24202
+                       myconf+=( --enable-stack-protector=no )
+                       ;;
                powerpc-*)
                        # Currently gcc on powerpc32 generates invalid code for
                        # __builtin_return_address(0) calls. Normally programs

Reply via email to