]>
Commit | Line | Data |
---|---|---|
7a830785 | 1 | /* Definitions of target machine for GNU compiler. ARM on semi-hosted platform |
5624e564 | 2 | Copyright (C) 1994-2015 Free Software Foundation, Inc. |
17879734 | 3 | Contributed by Richard Earnshaw (richard.earnshaw@arm.com) |
7a830785 | 4 | |
4f448245 NC |
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 | |
2f83c7d6 | 9 | by the Free Software Foundation; either version 3, or (at your |
4f448245 NC |
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 | |
2f83c7d6 NC |
18 | along with GCC; see the file COPYING3. If not see |
19 | <http://www.gnu.org/licenses/>. */ | |
7a830785 RE |
20 | |
21 | #define STARTFILE_SPEC "crt0.o%s" | |
22 | ||
be393ecf | 23 | #ifndef LIB_SPEC |
7a830785 | 24 | #define LIB_SPEC "-lc" |
be393ecf | 25 | #endif |
7a830785 | 26 | |
be393ecf | 27 | #ifndef SUBTARGET_CPP_SPEC |
d5b7b3ae | 28 | #define SUBTARGET_CPP_SPEC "-D__semi__" |
be393ecf | 29 | #endif |
e378e7e9 | 30 | |
be393ecf | 31 | #ifndef LINK_SPEC |
e378e7e9 | 32 | #define LINK_SPEC "%{mbig-endian:-EB} -X" |
be393ecf | 33 | #endif |
e378e7e9 | 34 | |
3d8532aa PB |
35 | #ifndef TARGET_DEFAULT_FLOAT_ABI |
36 | #define TARGET_DEFAULT_FLOAT_ABI ARM_FLOAT_ABI_HARD | |
37 | #endif | |
38 | ||
b020fd92 | 39 | #ifndef TARGET_DEFAULT |
c54c7322 | 40 | #define TARGET_DEFAULT (MASK_APCS_FRAME) |
d5b7b3ae RE |
41 | #endif |
42 | ||
fa13446b RE |
43 | #ifndef SUBTARGET_EXTRA_SPECS |
44 | #define SUBTARGET_EXTRA_SPECS \ | |
45 | { "subtarget_extra_asm_spec", SUBTARGET_EXTRA_ASM_SPEC }, | |
46 | #endif | |
47 | ||
d5b7b3ae | 48 | #ifndef SUBTARGET_EXTRA_ASM_SPEC |
fa13446b | 49 | #define SUBTARGET_EXTRA_ASM_SPEC "" |
d5b7b3ae RE |
50 | #endif |
51 | ||
17879734 RE |
52 | /* The compiler supports PIC code generation, even though the binutils |
53 | may not. If we are asked to compile position independent code, we | |
54 | always pass -k to the assembler. If it doesn't recognize it, then | |
55 | it will barf, which probably means that it doesn't know how to | |
56 | assemble PIC code. This is what we want, since otherwise tools | |
57 | may incorrectly assume we support PIC compilation even if the | |
58 | binutils can't. */ | |
d5b7b3ae RE |
59 | #ifndef ASM_SPEC |
60 | #define ASM_SPEC "\ | |
428b3812 | 61 | %{" FPIE_OR_FPIC_SPEC ": -k} \ |
d5b7b3ae | 62 | %{mbig-endian:-EB} \ |
54e73f88 | 63 | %(arm_cpu_spec) \ |
d5b7b3ae | 64 | %{mapcs-float:-mfloat} \ |
9b66ebb1 | 65 | %{mfloat-abi=*} %{mfpu=*} \ |
d5b7b3ae | 66 | %{mthumb-interwork:-mthumb-interwork} \ |
fa13446b | 67 | %(subtarget_extra_asm_spec)" |
b020fd92 | 68 | #endif |