gcc/
[official-gcc.git] / gcc / config / arm / coff.h
blob7deb23898047852e8e6b86ba93abc6dea917cc0d
1 /* Definitions of target machine for GNU compiler.
2 For ARM with COFF object format.
3 Copyright (C) 1995-2014 Free Software Foundation, Inc.
4 Contributed by Doug Evans (devans@cygnus.com).
6 This file is part of GCC.
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.
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.
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/>. */
22 /* Note - it is important that this definition matches the one in tcoff.h. */
23 #undef USER_LABEL_PREFIX
24 #define USER_LABEL_PREFIX "_"
27 /* Run-time Target Specification. */
28 #undef TARGET_DEFAULT_FLOAT_ABI
29 #define TARGET_DEFAULT_FLOAT_ABI ARM_FLOAT_ABI_SOFT
31 #undef TARGET_DEFAULT
32 #define TARGET_DEFAULT (MASK_APCS_FRAME)
34 #ifndef MULTILIB_DEFAULTS
35 #define MULTILIB_DEFAULTS \
36 { "marm", "mlittle-endian", "mfloat-abi=soft", "mno-thumb-interwork" }
37 #endif
39 /* This is COFF, but prefer stabs. */
40 #define SDB_DEBUGGING_INFO 1
42 #define PREFERRED_DEBUGGING_TYPE DBX_DEBUG
45 #define TARGET_ASM_FILE_START_APP_OFF true
47 /* Switch into a generic section. */
48 #define TARGET_ASM_NAMED_SECTION default_coff_asm_named_section
50 /* Support the ctors/dtors and other sections. */
52 #undef INIT_SECTION_ASM_OP
54 /* Define this macro if jump tables (for `tablejump' insns) should be
55 output in the text section, along with the assembler instructions.
56 Otherwise, the readonly data section is used. */
57 /* We put ARM and Thumb-2 jump tables in the text section, because it makes
58 the code more efficient, but for Thumb-1 it's better to put them out of
59 band unless we are generating compressed tables. */
60 #define JUMP_TABLES_IN_TEXT_SECTION \
61 (TARGET_32BIT || (TARGET_THUMB && (optimize_size || flag_pic)))
63 #undef READONLY_DATA_SECTION_ASM_OP
64 #define READONLY_DATA_SECTION_ASM_OP "\t.section .rdata"
65 #undef CTORS_SECTION_ASM_OP
66 #define CTORS_SECTION_ASM_OP "\t.section .ctors,\"x\""
67 #undef DTORS_SECTION_ASM_OP
68 #define DTORS_SECTION_ASM_OP "\t.section .dtors,\"x\""
70 /* Support the ctors/dtors sections for g++. */
72 /* __CTOR_LIST__ and __DTOR_LIST__ must be defined by the linker script. */
73 #define CTOR_LISTS_DEFINED_EXTERNALLY
75 #undef DO_GLOBAL_CTORS_BODY
76 #undef DO_GLOBAL_DTORS_BODY
78 /* The ARM development system defines __main. */
79 #define NAME__MAIN "__gccmain"
80 #define SYMBOL__MAIN __gccmain
82 #define SUPPORTS_INIT_PRIORITY 0