Mercurial > hg > CbC > CbC_gcc
annotate gcc/config/xtensa/elf.h @ 111:04ced10e8804
gcc 7
author | kono |
---|---|
date | Fri, 27 Oct 2017 22:46:09 +0900 |
parents | f6334be47118 |
children | 84e7813d76e9 |
rev | line source |
---|---|
0 | 1 /* Xtensa/Elf configuration. |
2 Derived from the configuration for GCC for Intel i386 running Linux. | |
111 | 3 Copyright (C) 2001-2017 Free Software Foundation, Inc. |
0 | 4 |
5 This file is part of GCC. | |
6 | |
7 GCC is free software; you can redistribute it and/or modify it under | |
8 the terms of the GNU General Public License as published by the Free | |
9 Software Foundation; either version 3, or (at your option) any later | |
10 version. | |
11 | |
12 GCC is distributed in the hope that it will be useful, but WITHOUT ANY | |
13 WARRANTY; without even the implied warranty of MERCHANTABILITY or | |
14 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License | |
15 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 #define TARGET_SECTION_TYPE_FLAGS xtensa_multibss_section_type_flags | |
22 | |
23 /* Don't assume anything about the header files. */ | |
24 #define NO_IMPLICIT_EXTERN_C | |
25 | |
26 #undef ASM_APP_ON | |
27 #define ASM_APP_ON "#APP\n" | |
28 | |
29 #undef ASM_APP_OFF | |
30 #define ASM_APP_OFF "#NO_APP\n" | |
31 | |
67
f6334be47118
update gcc from gcc-4.6-20100522 to gcc-4.6-20110318
nobuyasu <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
0
diff
changeset
|
32 #undef SIZE_TYPE |
f6334be47118
update gcc from gcc-4.6-20100522 to gcc-4.6-20110318
nobuyasu <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
0
diff
changeset
|
33 #define SIZE_TYPE "unsigned int" |
f6334be47118
update gcc from gcc-4.6-20100522 to gcc-4.6-20110318
nobuyasu <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
0
diff
changeset
|
34 |
f6334be47118
update gcc from gcc-4.6-20100522 to gcc-4.6-20110318
nobuyasu <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
0
diff
changeset
|
35 #undef PTRDIFF_TYPE |
f6334be47118
update gcc from gcc-4.6-20100522 to gcc-4.6-20110318
nobuyasu <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
0
diff
changeset
|
36 #define PTRDIFF_TYPE "int" |
f6334be47118
update gcc from gcc-4.6-20100522 to gcc-4.6-20110318
nobuyasu <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
0
diff
changeset
|
37 |
0 | 38 #undef WCHAR_TYPE |
39 #define WCHAR_TYPE "short unsigned int" | |
40 | |
41 #undef WCHAR_TYPE_SIZE | |
42 #define WCHAR_TYPE_SIZE 16 | |
43 | |
44 #undef ASM_SPEC | |
45 #define ASM_SPEC \ | |
67
f6334be47118
update gcc from gcc-4.6-20100522 to gcc-4.6-20110318
nobuyasu <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
0
diff
changeset
|
46 "%{mtext-section-literals:--text-section-literals} \ |
0 | 47 %{mno-text-section-literals:--no-text-section-literals} \ |
48 %{mtarget-align:--target-align} \ | |
49 %{mno-target-align:--no-target-align} \ | |
50 %{mlongcalls:--longcalls} \ | |
111 | 51 %{mno-longcalls:--no-longcalls} \ |
52 %{mauto-litpools:--auto-litpools} \ | |
53 %{mno-auto-litpools:--no-auto-litpools}" | |
0 | 54 |
55 #undef LIB_SPEC | |
56 #define LIB_SPEC "-lc -lsim -lc -lhandlers-sim -lhal" | |
57 | |
58 #undef STARTFILE_SPEC | |
59 #define STARTFILE_SPEC \ | |
60 "crt1-sim%O%s crt0%O%s crti%O%s crtbegin%O%s _vectors%O%s" | |
61 | |
62 #undef ENDFILE_SPEC | |
63 #define ENDFILE_SPEC "crtend%O%s crtn%O%s" | |
64 | |
65 #undef LINK_SPEC | |
66 #define LINK_SPEC \ | |
67 "%{shared:-shared} \ | |
68 %{!shared: \ | |
69 %{!static: \ | |
70 %{rdynamic:-export-dynamic} \ | |
71 %{static:-static}}}" | |
72 | |
73 #undef LOCAL_LABEL_PREFIX | |
74 #define LOCAL_LABEL_PREFIX "." | |
75 | |
76 /* Avoid dots for compatibility with VxWorks. */ | |
77 #undef NO_DOLLAR_IN_LABEL | |
78 #define NO_DOT_IN_LABEL | |
79 | |
80 /* Do not force "-fpic" for this target. */ | |
81 #define XTENSA_ALWAYS_PIC 0 | |
82 | |
67
f6334be47118
update gcc from gcc-4.6-20100522 to gcc-4.6-20110318
nobuyasu <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
0
diff
changeset
|
83 #undef DBX_REGISTER_NUMBER |
f6334be47118
update gcc from gcc-4.6-20100522 to gcc-4.6-20110318
nobuyasu <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
0
diff
changeset
|
84 |
0 | 85 /* Search for headers in $tooldir/arch/include and for libraries and |
86 startfiles in $tooldir/arch/lib. */ | |
87 #define GCC_DRIVER_HOST_INITIALIZATION \ | |
88 do \ | |
89 { \ | |
90 char *tooldir, *archdir; \ | |
91 tooldir = concat (tooldir_base_prefix, spec_machine, \ | |
92 dir_separator_str, NULL); \ | |
93 if (!IS_ABSOLUTE_PATH (tooldir)) \ | |
94 tooldir = concat (standard_exec_prefix, spec_machine, dir_separator_str, \ | |
95 spec_version, dir_separator_str, tooldir, NULL); \ | |
96 archdir = concat (tooldir, "arch", dir_separator_str, NULL); \ | |
97 add_prefix (&startfile_prefixes, \ | |
98 concat (archdir, "lib", dir_separator_str, NULL), \ | |
99 "GCC", PREFIX_PRIORITY_LAST, 0, 1); \ | |
100 add_prefix (&include_prefixes, archdir, \ | |
101 "GCC", PREFIX_PRIORITY_LAST, 0, 0); \ | |
102 } \ | |
103 while (0) |