Mercurial > hg > CbC > CbC_gcc
annotate gcc/config/arm/linux-elf.h @ 67:f6334be47118
update gcc from gcc-4.6-20100522 to gcc-4.6-20110318
author | nobuyasu <dimolto@cr.ie.u-ryukyu.ac.jp> |
---|---|
date | Tue, 22 Mar 2011 17:18:12 +0900 |
parents | 77e2b8dfacca |
children | 04ced10e8804 |
rev | line source |
---|---|
0 | 1 /* Definitions for ARM running Linux-based GNU systems using ELF |
2 Copyright (C) 1993, 1994, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, | |
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
|
3 2005, 2006, 2007, 2008, 2009, 2010, 2011 |
0 | 4 Free Software Foundation, Inc. |
5 Contributed by Philip Blundell <philb@gnu.org> | |
6 | |
7 This file is part of GCC. | |
8 | |
9 GCC is free software; you can redistribute it and/or modify it | |
10 under the terms of the GNU General Public License as published | |
11 by the Free Software Foundation; either version 3, or (at your | |
12 option) any later version. | |
13 | |
14 GCC is distributed in the hope that it will be useful, but WITHOUT | |
15 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY | |
16 or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public | |
17 License for more details. | |
18 | |
19 You should have received a copy of the GNU General Public License | |
20 along with GCC; see the file COPYING3. If not see | |
21 <http://www.gnu.org/licenses/>. */ | |
22 | |
23 /* elfos.h should have already been included. Now just override | |
24 any conflicting definitions and add any extras. */ | |
25 | |
26 /* Run-time Target Specification. */ | |
27 #undef TARGET_VERSION | |
28 #define TARGET_VERSION fputs (" (ARM GNU/Linux with ELF)", stderr); | |
29 | |
30 #undef TARGET_DEFAULT_FLOAT_ABI | |
31 #define TARGET_DEFAULT_FLOAT_ABI ARM_FLOAT_ABI_HARD | |
32 | |
33 /* TARGET_BIG_ENDIAN_DEFAULT is set in | |
34 config.gcc for big endian configurations. */ | |
35 #if TARGET_BIG_ENDIAN_DEFAULT | |
36 #define TARGET_ENDIAN_DEFAULT MASK_BIG_END | |
37 #define TARGET_ENDIAN_OPTION "mbig-endian" | |
38 #define TARGET_LINKER_EMULATION "armelfb_linux" | |
39 #else | |
40 #define TARGET_ENDIAN_DEFAULT 0 | |
41 #define TARGET_ENDIAN_OPTION "mlittle-endian" | |
42 #define TARGET_LINKER_EMULATION "armelf_linux" | |
43 #endif | |
44 | |
45 #undef TARGET_DEFAULT | |
46 #define TARGET_DEFAULT (TARGET_ENDIAN_DEFAULT) | |
47 | |
48 #define SUBTARGET_CPU_DEFAULT TARGET_CPU_arm6 | |
49 | |
50 #define SUBTARGET_EXTRA_LINK_SPEC " -m " TARGET_LINKER_EMULATION " -p" | |
51 | |
52 #undef MULTILIB_DEFAULTS | |
53 #define MULTILIB_DEFAULTS \ | |
54 { "marm", "mlittle-endian", "mhard-float", "mno-thumb-interwork" } | |
55 | |
56 /* Now we define the strings used to build the spec file. */ | |
57 #undef LIB_SPEC | |
58 #define LIB_SPEC \ | |
59 "%{pthread:-lpthread} \ | |
60 %{shared:-lc} \ | |
61 %{!shared:%{profile:-lc_p}%{!profile:-lc}}" | |
62 | |
63 #define LIBGCC_SPEC "%{msoft-float:-lfloat} %{mfloat-abi=soft*:-lfloat} -lgcc" | |
64 | |
65 #define GLIBC_DYNAMIC_LINKER "/lib/ld-linux.so.2" | |
66 | |
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
|
67 #define LINUX_TARGET_LINK_SPEC "%{h*} \ |
0 | 68 %{static:-Bstatic} \ |
69 %{shared:-shared} \ | |
70 %{symbolic:-Bsymbolic} \ | |
71 %{rdynamic:-export-dynamic} \ | |
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
|
72 -dynamic-linker " LINUX_DYNAMIC_LINKER " \ |
0 | 73 -X \ |
74 %{mbig-endian:-EB} %{mlittle-endian:-EL}" \ | |
75 SUBTARGET_EXTRA_LINK_SPEC | |
76 | |
77 #undef LINK_SPEC | |
78 #define LINK_SPEC LINUX_TARGET_LINK_SPEC | |
79 | |
80 #define TARGET_OS_CPP_BUILTINS() \ | |
81 do \ | |
82 { \ | |
83 LINUX_TARGET_OS_CPP_BUILTINS(); \ | |
84 } \ | |
85 while (0) | |
86 | |
87 /* This is how we tell the assembler that two symbols have the same value. */ | |
88 #define ASM_OUTPUT_DEF(FILE, NAME1, NAME2) \ | |
89 do \ | |
90 { \ | |
91 assemble_name (FILE, NAME1); \ | |
92 fputs (" = ", FILE); \ | |
93 assemble_name (FILE, NAME2); \ | |
94 fputc ('\n', FILE); \ | |
95 } \ | |
96 while (0) | |
97 | |
98 /* NWFPE always understands FPA instructions. */ | |
99 #undef FPUTYPE_DEFAULT | |
55
77e2b8dfacca
update it from 4.4.3 to 4.5.0
ryoma <e075725@ie.u-ryukyu.ac.jp>
parents:
0
diff
changeset
|
100 #define FPUTYPE_DEFAULT "fpe3" |
0 | 101 |
102 /* Call the function profiler with a given profile label. */ | |
103 #undef ARM_FUNCTION_PROFILER | |
104 #define ARM_FUNCTION_PROFILER(STREAM, LABELNO) \ | |
105 { \ | |
106 fprintf (STREAM, "\tbl\tmcount%s\n", \ | |
107 (TARGET_ARM && NEED_PLT_RELOC) ? "(PLT)" : ""); \ | |
108 } | |
109 | |
110 /* The GNU/Linux profiler clobbers the link register. Make sure the | |
111 prologue knows to save it. */ | |
112 #define PROFILE_HOOK(X) \ | |
113 emit_clobber (gen_rtx_REG (SImode, LR_REGNUM)) | |
114 | |
115 /* The GNU/Linux profiler needs a frame pointer. */ | |
116 #define SUBTARGET_FRAME_POINTER_REQUIRED crtl->profile | |
117 | |
118 /* Add .note.GNU-stack. */ | |
119 #undef NEED_INDICATE_EXEC_STACK | |
120 #define NEED_INDICATE_EXEC_STACK 1 |