sys-libs/glibc: disable stack protector on m68k
authorSergei Trofimovich <slyfox@gentoo.org>
Sun, 10 Feb 2019 23:38:46 +0000 (23:38 +0000)
committerSergei Trofimovich <slyfox@gentoo.org>
Sun, 10 Feb 2019 23:47:39 +0000 (23:47 +0000)
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@gentoo.org>
sys-libs/glibc/glibc-2.27-r6.ebuild
sys-libs/glibc/glibc-2.28-r5.ebuild
sys-libs/glibc/glibc-2.29.ebuild

index 668e6795b2437852804ddfbe4109b0471f513a9c..157ab8b051d5f3e68a618ae58e1ece896ca7cdd7 100644 (file)
@@ -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
index 827b432313ee46c5ac5e4a2199153f65dd7f09df..9087d26caafa8604d5e3faf5de461455180351f0 100644 (file)
@@ -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
index 3089cdbb5f1a99faef645ecaa2a8283fe429be5d..4ac98457b4852936ce3c2ef616f128439fe68499 100644 (file)
@@ -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