Mercurial > hg > CbC > CbC_gcc
annotate gcc/config/arm/linux-eabi.h @ 145:1830386684a0
gcc-9.2.0
author | anatofuz |
---|---|
date | Thu, 13 Feb 2020 11:34:05 +0900 |
parents | 84e7813d76e9 |
children |
rev | line source |
---|---|
0 | 1 /* Configuration file for ARM GNU/Linux EABI targets. |
145 | 2 Copyright (C) 2004-2020 Free Software Foundation, Inc. |
0 | 3 Contributed by CodeSourcery, LLC |
4 | |
5 This file is part of GCC. | |
6 | |
7 GCC is free software; you can redistribute it and/or modify it | |
8 under the terms of the GNU General Public License as published | |
9 by the Free Software Foundation; either version 3, or (at your | |
10 option) any later version. | |
11 | |
12 GCC is distributed in the hope that it will be useful, but WITHOUT | |
13 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY | |
14 or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public | |
15 License for more details. | |
16 | |
17 You should have received a copy of the GNU General Public License | |
18 along with GCC; see the file COPYING3. If not see | |
19 <http://www.gnu.org/licenses/>. */ | |
20 | |
21 /* On EABI GNU/Linux, we want both the BPABI builtins and the | |
22 GNU/Linux builtins. */ | |
23 #undef TARGET_OS_CPP_BUILTINS | |
24 #define TARGET_OS_CPP_BUILTINS() \ | |
25 do \ | |
26 { \ | |
27 TARGET_BPABI_CPP_BUILTINS(); \ | |
111 | 28 GNU_USER_TARGET_OS_CPP_BUILTINS(); \ |
67
f6334be47118
update gcc from gcc-4.6-20100522 to gcc-4.6-20110318
nobuyasu <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
55
diff
changeset
|
29 ANDROID_TARGET_OS_CPP_BUILTINS(); \ |
0 | 30 } \ |
31 while (false) | |
32 | |
145 | 33 #define EXTRA_TARGET_D_OS_VERSIONS() \ |
34 ANDROID_TARGET_D_OS_VERSIONS(); | |
35 | |
0 | 36 /* We default to a soft-float ABI so that binaries can run on all |
111 | 37 target hardware. If you override this to use the hard-float ABI then |
38 change the setting of GLIBC_DYNAMIC_LINKER_DEFAULT as well. */ | |
0 | 39 #undef TARGET_DEFAULT_FLOAT_ABI |
40 #define TARGET_DEFAULT_FLOAT_ABI ARM_FLOAT_ABI_SOFT | |
41 | |
42 /* We default to the "aapcs-linux" ABI so that enums are int-sized by | |
43 default. */ | |
44 #undef ARM_DEFAULT_ABI | |
45 #define ARM_DEFAULT_ABI ARM_ABI_AAPCS_LINUX | |
46 | |
47 /* TARGET_BIG_ENDIAN_DEFAULT is set in | |
48 config.gcc for big endian configurations. */ | |
49 #undef TARGET_LINKER_EMULATION | |
50 #if TARGET_BIG_ENDIAN_DEFAULT | |
51 #define TARGET_LINKER_EMULATION "armelfb_linux_eabi" | |
52 #else | |
53 #define TARGET_LINKER_EMULATION "armelf_linux_eabi" | |
54 #endif | |
55 | |
56 #undef SUBTARGET_EXTRA_LINK_SPEC | |
57 #define SUBTARGET_EXTRA_LINK_SPEC " -m " TARGET_LINKER_EMULATION | |
58 | |
111 | 59 /* GNU/Linux on ARM currently supports three dynamic linkers: |
60 - ld-linux.so.2 - for the legacy ABI | |
61 - ld-linux.so.3 - for the EABI-derived soft-float ABI | |
62 - ld-linux-armhf.so.3 - for the EABI-derived hard-float ABI. | |
63 All the dynamic linkers live in /lib. | |
64 We default to soft-float, but this can be overridden by changing both | |
65 GLIBC_DYNAMIC_LINKER_DEFAULT and TARGET_DEFAULT_FLOAT_ABI. */ | |
66 | |
0 | 67 #undef GLIBC_DYNAMIC_LINKER |
111 | 68 #define GLIBC_DYNAMIC_LINKER_SOFT_FLOAT "/lib/ld-linux.so.3" |
69 #define GLIBC_DYNAMIC_LINKER_HARD_FLOAT "/lib/ld-linux-armhf.so.3" | |
70 #define GLIBC_DYNAMIC_LINKER_DEFAULT GLIBC_DYNAMIC_LINKER_SOFT_FLOAT | |
71 | |
72 #define GLIBC_DYNAMIC_LINKER \ | |
73 "%{mfloat-abi=hard:" GLIBC_DYNAMIC_LINKER_HARD_FLOAT "} \ | |
74 %{mfloat-abi=soft*:" GLIBC_DYNAMIC_LINKER_SOFT_FLOAT "} \ | |
75 %{!mfloat-abi=*:" GLIBC_DYNAMIC_LINKER_DEFAULT "}" | |
76 | |
77 /* For ARM musl currently supports four dynamic linkers: | |
78 - ld-musl-arm.so.1 - for the EABI-derived soft-float ABI | |
79 - ld-musl-armhf.so.1 - for the EABI-derived hard-float ABI | |
80 - ld-musl-armeb.so.1 - for the EABI-derived soft-float ABI, EB | |
81 - ld-musl-armebhf.so.1 - for the EABI-derived hard-float ABI, EB | |
82 musl does not support the legacy OABI mode. | |
83 All the dynamic linkers live in /lib. | |
84 We default to soft-float, EL. */ | |
85 #undef MUSL_DYNAMIC_LINKER | |
86 #if TARGET_BIG_ENDIAN_DEFAULT | |
87 #define MUSL_DYNAMIC_LINKER_E "%{mlittle-endian:;:eb}" | |
88 #else | |
89 #define MUSL_DYNAMIC_LINKER_E "%{mbig-endian:eb}" | |
90 #endif | |
91 #define MUSL_DYNAMIC_LINKER \ | |
145 | 92 "/lib/ld-musl-arm" MUSL_DYNAMIC_LINKER_E "%{mfloat-abi=hard:hf}%{mfdpic:-fdpic}.so.1" |
0 | 93 |
94 /* At this point, bpabi.h will have clobbered LINK_SPEC. We want to | |
95 use the GNU/Linux version, not the generic BPABI version. */ | |
96 #undef LINK_SPEC | |
111 | 97 #define LINK_SPEC EABI_LINK_SPEC \ |
67
f6334be47118
update gcc from gcc-4.6-20100522 to gcc-4.6-20110318
nobuyasu <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
55
diff
changeset
|
98 LINUX_OR_ANDROID_LD (LINUX_TARGET_LINK_SPEC, \ |
f6334be47118
update gcc from gcc-4.6-20100522 to gcc-4.6-20110318
nobuyasu <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
55
diff
changeset
|
99 LINUX_TARGET_LINK_SPEC " " ANDROID_LINK_SPEC) |
f6334be47118
update gcc from gcc-4.6-20100522 to gcc-4.6-20110318
nobuyasu <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
55
diff
changeset
|
100 |
111 | 101 #undef ASAN_CC1_SPEC |
102 #define ASAN_CC1_SPEC "%{%:sanitize(address):-funwind-tables}" | |
103 | |
145 | 104 #define FDPIC_CC1_SPEC "" |
105 | |
67
f6334be47118
update gcc from gcc-4.6-20100522 to gcc-4.6-20110318
nobuyasu <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
55
diff
changeset
|
106 #undef CC1_SPEC |
f6334be47118
update gcc from gcc-4.6-20100522 to gcc-4.6-20110318
nobuyasu <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
55
diff
changeset
|
107 #define CC1_SPEC \ |
145 | 108 LINUX_OR_ANDROID_CC (GNU_USER_TARGET_CC1_SPEC " " ASAN_CC1_SPEC " " \ |
109 FDPIC_CC1_SPEC, \ | |
111 | 110 GNU_USER_TARGET_CC1_SPEC " " ASAN_CC1_SPEC " " \ |
111 ANDROID_CC1_SPEC) | |
67
f6334be47118
update gcc from gcc-4.6-20100522 to gcc-4.6-20110318
nobuyasu <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
55
diff
changeset
|
112 |
f6334be47118
update gcc from gcc-4.6-20100522 to gcc-4.6-20110318
nobuyasu <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
55
diff
changeset
|
113 #define CC1PLUS_SPEC \ |
f6334be47118
update gcc from gcc-4.6-20100522 to gcc-4.6-20110318
nobuyasu <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
55
diff
changeset
|
114 LINUX_OR_ANDROID_CC ("", ANDROID_CC1PLUS_SPEC) |
f6334be47118
update gcc from gcc-4.6-20100522 to gcc-4.6-20110318
nobuyasu <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
55
diff
changeset
|
115 |
f6334be47118
update gcc from gcc-4.6-20100522 to gcc-4.6-20110318
nobuyasu <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
55
diff
changeset
|
116 #undef LIB_SPEC |
f6334be47118
update gcc from gcc-4.6-20100522 to gcc-4.6-20110318
nobuyasu <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
55
diff
changeset
|
117 #define LIB_SPEC \ |
f6334be47118
update gcc from gcc-4.6-20100522 to gcc-4.6-20110318
nobuyasu <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
55
diff
changeset
|
118 LINUX_OR_ANDROID_LD (GNU_USER_TARGET_LIB_SPEC, \ |
111 | 119 GNU_USER_TARGET_NO_PTHREADS_LIB_SPEC " " ANDROID_LIB_SPEC) |
67
f6334be47118
update gcc from gcc-4.6-20100522 to gcc-4.6-20110318
nobuyasu <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
55
diff
changeset
|
120 |
f6334be47118
update gcc from gcc-4.6-20100522 to gcc-4.6-20110318
nobuyasu <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
55
diff
changeset
|
121 #undef STARTFILE_SPEC |
f6334be47118
update gcc from gcc-4.6-20100522 to gcc-4.6-20110318
nobuyasu <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
55
diff
changeset
|
122 #define STARTFILE_SPEC \ |
f6334be47118
update gcc from gcc-4.6-20100522 to gcc-4.6-20110318
nobuyasu <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
55
diff
changeset
|
123 LINUX_OR_ANDROID_LD (GNU_USER_TARGET_STARTFILE_SPEC, ANDROID_STARTFILE_SPEC) |
f6334be47118
update gcc from gcc-4.6-20100522 to gcc-4.6-20110318
nobuyasu <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
55
diff
changeset
|
124 |
f6334be47118
update gcc from gcc-4.6-20100522 to gcc-4.6-20110318
nobuyasu <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
55
diff
changeset
|
125 #undef ENDFILE_SPEC |
f6334be47118
update gcc from gcc-4.6-20100522 to gcc-4.6-20110318
nobuyasu <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
55
diff
changeset
|
126 #define ENDFILE_SPEC \ |
111 | 127 "%{Ofast|ffast-math|funsafe-math-optimizations:crtfastmath.o%s} " \ |
67
f6334be47118
update gcc from gcc-4.6-20100522 to gcc-4.6-20110318
nobuyasu <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
55
diff
changeset
|
128 LINUX_OR_ANDROID_LD (GNU_USER_TARGET_ENDFILE_SPEC, ANDROID_ENDFILE_SPEC) |
0 | 129 |
130 /* Use the default LIBGCC_SPEC, not the version in linux-elf.h, as we | |
131 do not use -lfloat. */ | |
132 #undef LIBGCC_SPEC | |
133 | |
55
77e2b8dfacca
update it from 4.4.3 to 4.5.0
ryoma <e075725@ie.u-ryukyu.ac.jp>
parents:
0
diff
changeset
|
134 /* Clear the instruction cache from `beg' to `end'. This is |
111 | 135 implemented in lib1funcs.S, so ensure an error if this definition |
55
77e2b8dfacca
update it from 4.4.3 to 4.5.0
ryoma <e075725@ie.u-ryukyu.ac.jp>
parents:
0
diff
changeset
|
136 is used. */ |
0 | 137 #undef CLEAR_INSN_CACHE |
55
77e2b8dfacca
update it from 4.4.3 to 4.5.0
ryoma <e075725@ie.u-ryukyu.ac.jp>
parents:
0
diff
changeset
|
138 #define CLEAR_INSN_CACHE(BEG, END) not_used |
111 | 139 |
140 #define ARM_TARGET2_DWARF_FORMAT (DW_EH_PE_pcrel | DW_EH_PE_indirect) |