]> git.ipfire.org Git - thirdparty/gcc.git/blame - gcc/config/arm/linux-eabi.h
configure.in (arm-*-linux-gnueabi): Add to noconfigdirs target-libffi...
[thirdparty/gcc.git] / gcc / config / arm / linux-eabi.h
CommitLineData
077fc835
KH
1/* Configuration file for ARM GNU/Linux EABI targets.
2 Copyright (C) 2004
3 Free Software Foundation, Inc.
4 Contributed by CodeSourcery, LLC
5
6 This file is part of GCC.
7
8 GCC is free software; you can redistribute it and/or modify it
9 under the terms of the GNU General Public License as published
10 by the Free Software Foundation; either version 2, or (at your
11 option) any later version.
12
13 GCC is distributed in the hope that it will be useful, but WITHOUT
14 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
15 or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public
16 License for more details.
17
18 You should have received a copy of the GNU General Public License
19 along with GCC; see the file COPYING. If not, write to
20 the Free Software Foundation, 51 Franklin Street, Fifth Floor,
21 Boston, MA 02110-1301, USA. */
22
23/* On EABI GNU/Linux, we want both the BPABI builtins and the
24 GNU/Linux builtins. */
25#undef TARGET_OS_CPP_BUILTINS
26#define TARGET_OS_CPP_BUILTINS() \
27 do \
28 { \
29 TARGET_BPABI_CPP_BUILTINS(); \
30 LINUX_TARGET_OS_CPP_BUILTINS(); \
31 } \
32 while (false)
33
34/* We default to a soft-float ABI so that binaries can run on all
35 target hardware. */
36#undef TARGET_DEFAULT_FLOAT_ABI
37#define TARGET_DEFAULT_FLOAT_ABI ARM_FLOAT_ABI_SOFT
38
39/* We default to the "aapcs-linux" ABI so that enums are int-sized by
40 default. */
41#undef ARM_DEFAULT_ABI
42#define ARM_DEFAULT_ABI ARM_ABI_AAPCS_LINUX
43
44/* Default to armv5t so that thumb shared libraries work.
45 The ARM10TDMI core is the default for armv5t, so set
46 SUBTARGET_CPU_DEFAULT to achieve this. */
47#undef SUBTARGET_CPU_DEFAULT
48#define SUBTARGET_CPU_DEFAULT TARGET_CPU_arm10tdmi
49
50#undef SUBTARGET_EXTRA_LINK_SPEC
51#define SUBTARGET_EXTRA_LINK_SPEC " -m armelf_linux_eabi"
52
53/* Use ld-linux.so.3 so that it will be possible to run "classic"
54 GNU/Linux binaries on an EABI system. */
55#undef LINUX_TARGET_INTERPRETER
56#define LINUX_TARGET_INTERPRETER "/lib/ld-linux.so.3"
57
58/* At this point, bpabi.h will have clobbered LINK_SPEC. We want to
59 use the GNU/Linux version, not the generic BPABI version. */
60#undef LINK_SPEC
61#define LINK_SPEC LINUX_TARGET_LINK_SPEC
62
63/* Use the default LIBGCC_SPEC, not the version in linux-elf.h, as we
64 do not use -lfloat. */
65#undef LIBGCC_SPEC
66
67/* Use the AAPCS type for wchar_t, or the previous Linux default for
68 non-AAPCS. */
69#undef WCHAR_TYPE
70#define WCHAR_TYPE (TARGET_AAPCS_BASED ? "unsigned int" : "long int")