1 |
commit: d74781e680bee416a48c648df1f8c6000da84e4d |
2 |
Author: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Feb 10 23:38:46 2019 +0000 |
4 |
Commit: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Feb 10 23:47:39 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d74781e6 |
7 |
|
8 |
sys-libs/glibc: disable stack protector on m68k |
9 |
|
10 |
setjmp() clobbers 'a5' register by stack protector prologue. |
11 |
|
12 |
Bug: https://sourceware.org/PR24202 |
13 |
Package-Manager: Portage-2.3.59, Repoman-2.3.12 |
14 |
Signed-off-by: Sergei Trofimovich <slyfox <AT> gentoo.org> |
15 |
|
16 |
sys-libs/glibc/glibc-2.27-r6.ebuild | 5 +++++ |
17 |
sys-libs/glibc/glibc-2.28-r5.ebuild | 5 +++++ |
18 |
sys-libs/glibc/glibc-2.29.ebuild | 5 +++++ |
19 |
3 files changed, 15 insertions(+) |
20 |
|
21 |
diff --git a/sys-libs/glibc/glibc-2.27-r6.ebuild b/sys-libs/glibc/glibc-2.27-r6.ebuild |
22 |
index 668e6795b24..157ab8b051d 100644 |
23 |
--- a/sys-libs/glibc/glibc-2.27-r6.ebuild |
24 |
+++ b/sys-libs/glibc/glibc-2.27-r6.ebuild |
25 |
@@ -809,6 +809,11 @@ glibc_do_configure() { |
26 |
local myconf=() |
27 |
|
28 |
case ${CTARGET} in |
29 |
+ m68k*) |
30 |
+ # setjmp() is not compatible with stack protection: |
31 |
+ # https://sourceware.org/PR24202 |
32 |
+ myconf+=( --enable-stack-protector=no ) |
33 |
+ ;; |
34 |
powerpc-*) |
35 |
# Currently gcc on powerpc32 generates invalid code for |
36 |
# __builtin_return_address(0) calls. Normally programs |
37 |
|
38 |
diff --git a/sys-libs/glibc/glibc-2.28-r5.ebuild b/sys-libs/glibc/glibc-2.28-r5.ebuild |
39 |
index 827b432313e..9087d26caaf 100644 |
40 |
--- a/sys-libs/glibc/glibc-2.28-r5.ebuild |
41 |
+++ b/sys-libs/glibc/glibc-2.28-r5.ebuild |
42 |
@@ -799,6 +799,11 @@ glibc_do_configure() { |
43 |
local myconf=() |
44 |
|
45 |
case ${CTARGET} in |
46 |
+ m68k*) |
47 |
+ # setjmp() is not compatible with stack protection: |
48 |
+ # https://sourceware.org/PR24202 |
49 |
+ myconf+=( --enable-stack-protector=no ) |
50 |
+ ;; |
51 |
powerpc-*) |
52 |
# Currently gcc on powerpc32 generates invalid code for |
53 |
# __builtin_return_address(0) calls. Normally programs |
54 |
|
55 |
diff --git a/sys-libs/glibc/glibc-2.29.ebuild b/sys-libs/glibc/glibc-2.29.ebuild |
56 |
index 3089cdbb5f1..4ac98457b48 100644 |
57 |
--- a/sys-libs/glibc/glibc-2.29.ebuild |
58 |
+++ b/sys-libs/glibc/glibc-2.29.ebuild |
59 |
@@ -800,6 +800,11 @@ glibc_do_configure() { |
60 |
local myconf=() |
61 |
|
62 |
case ${CTARGET} in |
63 |
+ m68k*) |
64 |
+ # setjmp() is not compatible with stack protection: |
65 |
+ # https://sourceware.org/PR24202 |
66 |
+ myconf+=( --enable-stack-protector=no ) |
67 |
+ ;; |
68 |
powerpc-*) |
69 |
# Currently gcc on powerpc32 generates invalid code for |
70 |
# __builtin_return_address(0) calls. Normally programs |