termux-packages/packages/libgc/os_dep.c.patch

15 lines
688 B
Diff
Raw Normal View History

2019-01-20 22:55:31 +01:00
diff -u -r ../gc-8.0.2/os_dep.c ./os_dep.c
--- ../gc-8.0.2/os_dep.c 2018-12-23 21:28:41.000000000 +0000
+++ ./os_dep.c 2019-01-20 19:58:07.823582155 +0000
@@ -436,7 +436,9 @@
# if (defined(LINUX) || defined(HURD)) && !defined(IGNORE_PROG_DATA_START)
/* Try the easy approaches first: */
2019-01-20 22:55:31 +01:00
-# ifdef HOST_ANDROID
+# ifdef HOST_ANDROID_DISABLED_TERMUX
+ /* This workaround for gold linker when only aarch64 is using it in
+ Termux breaks other arches - apply it to aarch64 only. */
/* Workaround for "gold" (default) linker (as of Android NDK r10e). */
if ((word)__data_start < (word)_etext
&& (word)_etext < (word)__dso_handle) {