2020-12-28 23:49:06 +01:00
|
|
|
diff -uNr go/src/runtime/cgo/gcc_linux_386.c go.mod/src/runtime/cgo/gcc_linux_386.c
|
|
|
|
--- go/src/runtime/cgo/gcc_linux_386.c 2020-12-03 19:32:44.000000000 +0200
|
2020-12-29 00:13:33 +01:00
|
|
|
+++ go.mod/src/runtime/cgo/gcc_linux_386.c 2020-12-29 01:13:05.120640580 +0200
|
|
|
|
@@ -12,7 +12,11 @@
|
2020-12-28 23:49:06 +01:00
|
|
|
static void (*setg_gcc)(void*);
|
|
|
|
|
|
|
|
// This will be set in gcc_android.c for android-specific customization.
|
2020-12-29 00:13:33 +01:00
|
|
|
+#ifdef __ANDROID__
|
2020-12-28 23:49:06 +01:00
|
|
|
+extern void (*x_cgo_inittls)(void **tlsg, void **tlsbase);
|
2020-12-29 00:13:33 +01:00
|
|
|
+#else
|
|
|
|
void (*x_cgo_inittls)(void **tlsg, void **tlsbase);
|
|
|
|
+#endif
|
2020-12-28 23:49:06 +01:00
|
|
|
|
|
|
|
void
|
|
|
|
x_cgo_init(G *g, void (*setg)(void*), void **tlsg, void **tlsbase)
|
|
|
|
diff -uNr go/src/runtime/cgo/gcc_linux_amd64.c go.mod/src/runtime/cgo/gcc_linux_amd64.c
|
|
|
|
--- go/src/runtime/cgo/gcc_linux_amd64.c 2020-12-03 19:32:44.000000000 +0200
|
2020-12-29 00:13:33 +01:00
|
|
|
+++ go.mod/src/runtime/cgo/gcc_linux_amd64.c 2020-12-29 01:11:57.624063728 +0200
|
|
|
|
@@ -14,7 +14,11 @@
|
2020-12-28 23:49:06 +01:00
|
|
|
static void (*setg_gcc)(void*);
|
|
|
|
|
|
|
|
// This will be set in gcc_android.c for android-specific customization.
|
2020-12-29 00:13:33 +01:00
|
|
|
+#ifdef __ANDROID__
|
2020-12-28 23:49:06 +01:00
|
|
|
+extern void (*x_cgo_inittls)(void **tlsg, void **tlsbase);
|
2020-12-29 00:13:33 +01:00
|
|
|
+#else
|
|
|
|
void (*x_cgo_inittls)(void **tlsg, void **tlsbase);
|
|
|
|
+#endif
|
2020-12-28 23:49:06 +01:00
|
|
|
|
|
|
|
void
|
|
|
|
x_cgo_init(G *g, void (*setg)(void*), void **tlsg, void **tlsbase)
|
2020-12-28 23:43:18 +01:00
|
|
|
diff -uNr go/src/runtime/cgo/gcc_linux_arm64.c go.mod/src/runtime/cgo/gcc_linux_arm64.c
|
|
|
|
--- go/src/runtime/cgo/gcc_linux_arm64.c 2020-12-03 19:32:44.000000000 +0200
|
2020-12-29 00:13:33 +01:00
|
|
|
+++ go.mod/src/runtime/cgo/gcc_linux_arm64.c 2020-12-29 01:12:17.648234844 +0200
|
|
|
|
@@ -12,7 +12,11 @@
|
2020-12-28 23:43:18 +01:00
|
|
|
|
|
|
|
static void *threadentry(void*);
|
|
|
|
|
2020-12-29 00:13:33 +01:00
|
|
|
+#ifdef __ANDROID__
|
2020-12-28 23:43:18 +01:00
|
|
|
+extern void (*x_cgo_inittls)(void **tlsg, void **tlsbase);
|
2020-12-29 00:13:33 +01:00
|
|
|
+#else
|
|
|
|
void (*x_cgo_inittls)(void **tlsg, void **tlsbase);
|
|
|
|
+#endif
|
2020-12-28 23:43:18 +01:00
|
|
|
static void (*setg_gcc)(void*);
|
|
|
|
|
|
|
|
void
|
2020-12-28 23:49:06 +01:00
|
|
|
diff -uNr go/src/runtime/cgo/gcc_linux_arm.c go.mod/src/runtime/cgo/gcc_linux_arm.c
|
|
|
|
--- go/src/runtime/cgo/gcc_linux_arm.c 2020-12-03 19:32:44.000000000 +0200
|
2020-12-29 00:13:33 +01:00
|
|
|
+++ go.mod/src/runtime/cgo/gcc_linux_arm.c 2020-12-29 01:12:38.656414386 +0200
|
|
|
|
@@ -10,7 +10,11 @@
|
2020-12-28 23:49:06 +01:00
|
|
|
|
|
|
|
static void *threadentry(void*);
|
|
|
|
|
2020-12-29 00:13:33 +01:00
|
|
|
+#ifdef __ANDROID__
|
2020-12-28 23:49:06 +01:00
|
|
|
+extern void (*x_cgo_inittls)(void **tlsg, void **tlsbase);
|
2020-12-29 00:13:33 +01:00
|
|
|
+#else
|
|
|
|
void (*x_cgo_inittls)(void **tlsg, void **tlsbase);
|
|
|
|
+#endif
|
2020-12-28 23:49:06 +01:00
|
|
|
static void (*setg_gcc)(void*);
|
|
|
|
|
|
|
|
void
|