1 |
commit: 2f4654486392f02a8cead3f7f4b5fc475f084df0 |
2 |
Author: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Feb 10 23:37:08 2019 +0000 |
4 |
Commit: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Feb 10 23:47:38 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2f465448 |
7 |
|
8 |
toolchain-glibc.eclass: disable stack protector on m68k |
9 |
|
10 |
setjmp() clobbers 'a5' register by stack protector prologue. |
11 |
|
12 |
Bug: https://sourceware.org/PR24202 |
13 |
Signed-off-by: Sergei Trofimovich <slyfox <AT> gentoo.org> |
14 |
|
15 |
eclass/toolchain-glibc.eclass | 5 +++++ |
16 |
1 file changed, 5 insertions(+) |
17 |
|
18 |
diff --git a/eclass/toolchain-glibc.eclass b/eclass/toolchain-glibc.eclass |
19 |
index 6698f2045e2..81d494c6fd5 100644 |
20 |
--- a/eclass/toolchain-glibc.eclass |
21 |
+++ b/eclass/toolchain-glibc.eclass |
22 |
@@ -842,6 +842,11 @@ glibc_do_configure() { |
23 |
|
24 |
if version_is_at_least 2.25 ; then |
25 |
case ${CTARGET} in |
26 |
+ m68k*) |
27 |
+ # setjmp() is not compatible with stack protection: |
28 |
+ # https://sourceware.org/PR24202 |
29 |
+ myconf+=( --enable-stack-protector=no ) |
30 |
+ ;; |
31 |
mips*) |
32 |
# dlopen() detects stack smash on mips n32 ABI. |
33 |
# Cause is unknown: https://bugs.gentoo.org/640130 |