]> git.ipfire.org Git - thirdparty/gcc.git/blob - gcc/config/xtensa/elf.h
elf.h (SIZE_TYPE, [...]): Remove redundant macros.
[thirdparty/gcc.git] / gcc / config / xtensa / elf.h
1 /* Xtensa/Elf configuration.
2 Derived from the configuration for GCC for Intel i386 running Linux.
3 Copyright (C) 2001,2003 Free Software Foundation, Inc.
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 2, 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 COPYING. If not, write to the Free
19 Software Foundation, 59 Temple Place - Suite 330, Boston, MA
20 02111-1307, USA. */
21
22 #define TARGET_OS_CPP_BUILTINS() \
23 do { \
24 builtin_define ("__ELF__"); \
25 } while (0)
26
27 #define TARGET_SECTION_TYPE_FLAGS xtensa_multibss_section_type_flags
28
29 /* Don't assume anything about the header files. */
30 #define NO_IMPLICIT_EXTERN_C
31
32 #undef ASM_APP_ON
33 #define ASM_APP_ON "#APP\n"
34
35 #undef ASM_APP_OFF
36 #define ASM_APP_OFF "#NO_APP\n"
37
38 #undef MD_EXEC_PREFIX
39 #undef MD_STARTFILE_PREFIX
40
41 #undef TARGET_VERSION
42 #define TARGET_VERSION fputs (" (Xtensa/ELF)", stderr);
43
44 #undef WCHAR_TYPE
45 #define WCHAR_TYPE "short unsigned int"
46
47 #undef WCHAR_TYPE_SIZE
48 #define WCHAR_TYPE_SIZE 16
49
50 #undef ASM_SPEC
51 #define ASM_SPEC "%{v} %{mno-density:--no-density} \
52 %{mtext-section-literals:--text-section-literals} \
53 %{mno-text-section-literals:--no-text-section-literals} \
54 %{mtarget-align:--target-align} \
55 %{mno-target-align:--no-target-align} \
56 %{mlongcalls:--longcalls} \
57 %{mno-longcalls:--no-longcalls}"
58
59 #undef ASM_FINAL_SPEC
60
61 #undef LIB_SPEC
62 #define LIB_SPEC "-lc -lsim -lc -lhandlers-sim -lhal"
63
64 #undef STARTFILE_SPEC
65 #define STARTFILE_SPEC "crt1-sim%O%s crti%O%s crtbegin%O%s _vectors%O%s"
66
67 #undef ENDFILE_SPEC
68 #define ENDFILE_SPEC "crtend%O%s crtn%O%s"
69
70 #undef LINK_SPEC
71 #define LINK_SPEC \
72 "%{shared:-shared} \
73 %{!shared: \
74 %{!static: \
75 %{rdynamic:-export-dynamic} \
76 %{static:-static}}}"
77
78 #undef LOCAL_LABEL_PREFIX
79 #define LOCAL_LABEL_PREFIX "."
80
81 /* Avoid dots for compatibility with VxWorks. */
82 #undef NO_DOLLAR_IN_LABEL
83 #define NO_DOT_IN_LABEL
84
85 /* Do not force "-fpic" for this target. */
86 #define XTENSA_ALWAYS_PIC 0
87
88 /* Redefine the standard ELF version of ASM_DECLARE_FUNCTION_SIZE to
89 allow adding the ".end literal_prefix" directive at the end of the
90 function. */
91 #undef ASM_DECLARE_FUNCTION_SIZE
92 #define ASM_DECLARE_FUNCTION_SIZE(FILE, FNAME, DECL) \
93 do \
94 { \
95 if (!flag_inhibit_size_directive) \
96 ASM_OUTPUT_MEASURED_SIZE (FILE, FNAME); \
97 XTENSA_DECLARE_FUNCTION_SIZE(FILE, FNAME, DECL); \
98 } \
99 while (0)