1 |
282 |
jeremybenn |
/* Configuration file for ARM GNU/Linux EABI targets.
|
2 |
|
|
Copyright (C) 2004, 2005, 2006, 2007
|
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 3, 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 COPYING3. If not see
|
20 |
|
|
<http://www.gnu.org/licenses/>. */
|
21 |
|
|
|
22 |
|
|
/* On EABI GNU/Linux, we want both the BPABI builtins and the
|
23 |
|
|
GNU/Linux builtins. */
|
24 |
|
|
#undef TARGET_OS_CPP_BUILTINS
|
25 |
|
|
#define TARGET_OS_CPP_BUILTINS() \
|
26 |
|
|
do \
|
27 |
|
|
{ \
|
28 |
|
|
TARGET_BPABI_CPP_BUILTINS(); \
|
29 |
|
|
LINUX_TARGET_OS_CPP_BUILTINS(); \
|
30 |
|
|
} \
|
31 |
|
|
while (false)
|
32 |
|
|
|
33 |
|
|
/* We default to a soft-float ABI so that binaries can run on all
|
34 |
|
|
target hardware. */
|
35 |
|
|
#undef TARGET_DEFAULT_FLOAT_ABI
|
36 |
|
|
#define TARGET_DEFAULT_FLOAT_ABI ARM_FLOAT_ABI_SOFT
|
37 |
|
|
|
38 |
|
|
/* We default to the "aapcs-linux" ABI so that enums are int-sized by
|
39 |
|
|
default. */
|
40 |
|
|
#undef ARM_DEFAULT_ABI
|
41 |
|
|
#define ARM_DEFAULT_ABI ARM_ABI_AAPCS_LINUX
|
42 |
|
|
|
43 |
|
|
/* Default to armv5t so that thumb shared libraries work.
|
44 |
|
|
The ARM10TDMI core is the default for armv5t, so set
|
45 |
|
|
SUBTARGET_CPU_DEFAULT to achieve this. */
|
46 |
|
|
#undef SUBTARGET_CPU_DEFAULT
|
47 |
|
|
#define SUBTARGET_CPU_DEFAULT TARGET_CPU_arm10tdmi
|
48 |
|
|
|
49 |
|
|
/* TARGET_BIG_ENDIAN_DEFAULT is set in
|
50 |
|
|
config.gcc for big endian configurations. */
|
51 |
|
|
#undef TARGET_LINKER_EMULATION
|
52 |
|
|
#if TARGET_BIG_ENDIAN_DEFAULT
|
53 |
|
|
#define TARGET_LINKER_EMULATION "armelfb_linux_eabi"
|
54 |
|
|
#else
|
55 |
|
|
#define TARGET_LINKER_EMULATION "armelf_linux_eabi"
|
56 |
|
|
#endif
|
57 |
|
|
|
58 |
|
|
#undef SUBTARGET_EXTRA_LINK_SPEC
|
59 |
|
|
#define SUBTARGET_EXTRA_LINK_SPEC " -m " TARGET_LINKER_EMULATION
|
60 |
|
|
|
61 |
|
|
/* Use ld-linux.so.3 so that it will be possible to run "classic"
|
62 |
|
|
GNU/Linux binaries on an EABI system. */
|
63 |
|
|
#undef GLIBC_DYNAMIC_LINKER
|
64 |
|
|
#define GLIBC_DYNAMIC_LINKER "/lib/ld-linux.so.3"
|
65 |
|
|
|
66 |
|
|
/* At this point, bpabi.h will have clobbered LINK_SPEC. We want to
|
67 |
|
|
use the GNU/Linux version, not the generic BPABI version. */
|
68 |
|
|
#undef LINK_SPEC
|
69 |
|
|
#define LINK_SPEC LINUX_TARGET_LINK_SPEC BE8_LINK_SPEC
|
70 |
|
|
|
71 |
|
|
/* Use the default LIBGCC_SPEC, not the version in linux-elf.h, as we
|
72 |
|
|
do not use -lfloat. */
|
73 |
|
|
#undef LIBGCC_SPEC
|
74 |
|
|
|
75 |
|
|
/* Clear the instruction cache from `beg' to `end'. This is
|
76 |
|
|
implemented in lib1funcs.asm, so ensure an error if this definition
|
77 |
|
|
is used. */
|
78 |
|
|
#undef CLEAR_INSN_CACHE
|
79 |
|
|
#define CLEAR_INSN_CACHE(BEG, END) not_used
|