0036-gcc-go-undef-SETCONTEXT_CLOBBERS_TLS-in-proc.c.patch (804B)
1 From 79d8ab42aefb1d3c5f794f51df643ab040c30e30 Mon Sep 17 00:00:00 2001 2 From: =?UTF-8?q?S=C3=B6ren=20Tempel?= <soeren+git@soeren-tempel.net> 3 Date: Sun, 30 Aug 2020 19:27:51 +0200 4 Subject: [PATCH] gcc-go: undef SETCONTEXT_CLOBBERS_TLS in proc.c 5 6 --- 7 libgo/runtime/proc.c | 4 ++++ 8 1 file changed, 4 insertions(+) 9 10 diff --git a/libgo/runtime/proc.c b/libgo/runtime/proc.c 11 index 6f7d2e27996..5afd7902497 100644 12 --- a/libgo/runtime/proc.c 13 +++ b/libgo/runtime/proc.c 14 @@ -66,6 +66,10 @@ static void gscanstack(G*); 15 16 __thread G *g __asm__(GOSYM_PREFIX "runtime.g"); 17 18 +/* libucontext does not seem to support tlsbase, undef the macro 19 + * here to make sure we define initcontext and fixcontext as dummies. */ 20 +#undef SETCONTEXT_CLOBBERS_TLS 21 + 22 #ifndef SETCONTEXT_CLOBBERS_TLS 23 24 static inline void 25 -- 26 2.31.1 27