summaryrefslogtreecommitdiff
path: root/packages/gcc/7.3.0/0016-crystax.patch
diff options
context:
space:
mode:
Diffstat (limited to 'packages/gcc/7.3.0/0016-crystax.patch')
-rw-r--r--packages/gcc/7.3.0/0016-crystax.patch34
1 files changed, 19 insertions, 15 deletions
diff --git a/packages/gcc/7.3.0/0016-crystax.patch b/packages/gcc/7.3.0/0016-crystax.patch
index cd56a56..8f2eb43 100644
--- a/packages/gcc/7.3.0/0016-crystax.patch
+++ b/packages/gcc/7.3.0/0016-crystax.patch
@@ -1,22 +1,26 @@
-commit 778a9ef107f51544d583f110e92b75f4d9d79117
+commit dbeae1190cabad83999f2540523f045acc1bb4ec
Author: Dmitry Moskalchuk <dm@crystax.net>
-Date: Thu Aug 20 19:11:07 2015 +0300
+Date: Fri Aug 21 17:41:59 2015 +0300
- [android] Don't use PIE copyrelocs for x86/x86_64
+ [android] Always use gthr-posix.h instead of gthr-default.h
Signed-off-by: Dmitry Moskalchuk <dm@crystax.net>
---
- gcc/config/i386/i386.c | 1 +
- 1 file changed, 1 insertion(+)
+ libgcc/gthr.h | 4 ++++
+ 1 file changed, 4 insertions(+)
---- a/gcc/config/i386/i386.c
-+++ b/gcc/config/i386/i386.c
-@@ -15753,6 +15753,7 @@
- else if (!SYMBOL_REF_FAR_ADDR_P (op0)
- && (SYMBOL_REF_LOCAL_P (op0)
- || (HAVE_LD_PIE_COPYRELOC
-+ && !TARGET_HAS_BIONIC
- && flag_pie
- && !SYMBOL_REF_WEAK (op0)
- && !SYMBOL_REF_FUNCTION_P (op0)))
+--- a/libgcc/gthr.h
++++ b/libgcc/gthr.h
+@@ -145,7 +145,11 @@
+ #define GTHREAD_USE_WEAK 1
+ #endif
+ #endif
++#if __ANDROID__
++#include "gthr-posix.h"
++#else
+ #include "gthr-default.h"
++#endif
+
+ #ifndef HIDE_EXPORTS
+ #pragma GCC visibility pop