chiark / gitweb /
debianutils: Update from 4.8.3 to 4.8.4
[termux-packages] / packages / libgc / os_dep.c.patch
1 --- ../cache/gc-7.6.0/os_dep.c  2016-08-02 19:36:14.000000000 +0000
2 +++ ./os_dep.c  2017-10-19 03:43:03.800275032 +0000
3 @@ -426,7 +426,11 @@
4  
5  #   if (defined(LINUX) || defined(HURD)) && !defined(IGNORE_PROG_DATA_START)
6        /* Try the easy approaches first: */
7 -#     ifdef PLATFORM_ANDROID
8 +       /* this workaround for gold linker when only aarch64 is using it in 
9 +         termux breaks x86_64 and x86 builds and also arm w3m apply it to
10 +        aarch64 only  */
11 +
12 +#   if defined(PLATFORM_ANDROID) && defined(__aarch64__) 
13          /* Workaround for "gold" (default) linker (as of Android NDK r10e). */
14          if ((word)__data_start < (word)_etext
15              && (word)_etext < (word)__dso_handle) {