openssl: Ensure that bin/openssl is a pie binary
[termux-packages] / packages / gcc / gcc-config-aarch64-aarch64-linux-android.h.patch
CommitLineData
b257fed9
FF
1diff -N -u -r ../gcc-6.1.0/gcc/config/aarch64/aarch64-linux-android.h ./gcc/config/aarch64/aarch64-linux-android.h
2--- ../gcc-6.1.0/gcc/config/aarch64/aarch64-linux-android.h 1969-12-31 19:00:00.000000000 -0500
3+++ ./gcc/config/aarch64/aarch64-linux-android.h 2016-04-29 05:16:37.417191309 -0400
4@@ -0,0 +1,63 @@
98cc1d7b
FF
5+/* Machine description for AArch64 architecture.
6+ Copyright (C) 2014 Free Software Foundation, Inc.
7+
8+ This file is part of GCC.
9+
10+ GCC is free software; you can redistribute it and/or modify it
11+ under the terms of the GNU General Public License as published by
12+ the Free Software Foundation; either version 3, or (at your option)
13+ any later version.
14+
15+ GCC is distributed in the hope that it will be useful, but
16+ WITHOUT ANY WARRANTY; without even the implied warranty of
17+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
18+ General Public License for more details.
19+
20+ You should have received a copy of the GNU General Public License
21+ along with GCC; see the file COPYING3. If not see
22+ <http://www.gnu.org/licenses/>. */
23+
24+#ifndef GCC_AARCH64_LINUX_ANDROID_H
25+#define GCC_AARCH64_LINUX_ANDROID_H
26+
27+
28+#undef TARGET_OS_CPP_BUILTINS
29+#define TARGET_OS_CPP_BUILTINS() \
30+ do \
31+ { \
32+ GNU_USER_TARGET_OS_CPP_BUILTINS(); \
33+ ANDROID_TARGET_OS_CPP_BUILTINS(); \
34+ } \
35+ while (0)
36+
37+#undef LINK_SPEC
38+#define LINK_SPEC \
39+ LINUX_OR_ANDROID_LD (LINUX_TARGET_LINK_SPEC, \
40+ LINUX_TARGET_LINK_SPEC " " ANDROID_LINK_SPEC)
41+
42+#undef CC1_SPEC
43+#define CC1_SPEC \
44+ LINUX_OR_ANDROID_CC (GNU_USER_TARGET_CC1_SPEC, \
b257fed9 45+ GNU_USER_TARGET_CC1_SPEC " " ANDROID_CC1_SPEC("-fpic"))
98cc1d7b
FF
46+
47+#define CC1PLUS_SPEC \
48+ LINUX_OR_ANDROID_CC ("", ANDROID_CC1PLUS_SPEC)
49+
50+#undef LIB_SPEC
51+#define LIB_SPEC \
52+ LINUX_OR_ANDROID_LD (GNU_USER_TARGET_LIB_SPEC, \
53+ GNU_USER_TARGET_NO_PTHREADS_LIB_SPEC " " ANDROID_LIB_SPEC)
54+
55+#undef STARTFILE_SPEC
56+#define STARTFILE_SPEC \
57+ LINUX_OR_ANDROID_LD (GNU_USER_TARGET_STARTFILE_SPEC, ANDROID_STARTFILE_SPEC)
58+
59+#undef ENDFILE_SPEC
60+#define ENDFILE_SPEC \
61+ LINUX_OR_ANDROID_LD (GNU_USER_TARGET_ENDFILE_SPEC, ANDROID_ENDFILE_SPEC)
62+
b257fed9
FF
63+#ifdef IN_LIBGCC2
64+#define LIBGCC2_UNWIND_ATTRIBUTE __attribute__((visibility("default")))
65+#endif
66+
98cc1d7b 67+#endif /* GCC_AARCH64_LINUX_ANDROID_H */