pmaports/cross/gcc-armhf/0036-gcc-go-undef-SETCONTEXT_CLOBBERS_TLS-in-proc.c.patch

28 lines
804 B
Diff
Raw Normal View History

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