projects
/
gentoo.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
97fad26
)
toolchain-glibc.eclass: disable stack protector on m68k
author
Sergei Trofimovich
<slyfox@gentoo.org>
Sun, 10 Feb 2019 23:37:08 +0000
(23:37 +0000)
committer
Sergei Trofimovich
<slyfox@gentoo.org>
Sun, 10 Feb 2019 23:47:38 +0000
(23:47 +0000)
setjmp() clobbers 'a5' register by stack protector prologue.
Bug: https://sourceware.org/PR24202
Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
eclass/toolchain-glibc.eclass
patch
|
blob
|
history
diff --git
a/eclass/toolchain-glibc.eclass
b/eclass/toolchain-glibc.eclass
index 6698f2045e22306a251a687a60f4a65af73575f9..81d494c6fd536bcf2c644fba6a6c0a8c409008e0 100644
(file)
--- 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