daily update
[binutils.git] / gas / config / tc-xc16x.h
blobaa510d8e1a59015e1f5809fe6c8bab4ba1bec5b5
1 /* This file is tc-xc16x.h
2 Copyright 2006 Free Software Foundation, Inc.
3 Contributed by KPIT Cummins Infosystems
5 This file is part of GAS, the GNU Assembler.
7 GAS is free software; you can redistribute it and/or modify
8 it under the terms of the GNU General Public License as published by
9 the Free Software Foundation; either version 2, or (at your option)
10 any later version.
12 GAS is distributed in the hope that it will be useful,
13 but WITHOUT ANY WARRANTY; without even the implied warranty of
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 GNU General Public License for more details.
17 You should have received a copy of the GNU General Public License
18 along with GAS; see the file COPYING. If not, write to the Free
19 Software Foundation, 51 Franklin Street - Fifth Floor, Boston, MA
20 02110-1301, USA. */
22 #define TC_XC16X
24 #define TARGET_BYTES_BIG_ENDIAN 0
26 #define TARGET_ARCH bfd_arch_xc16x
28 #ifdef BFD_ASSEMBLER
29 /* Fixup debug sections since we will never relax them. */
30 #define TC_LINKRELAX_FIXUP(seg) (seg->flags & SEC_ALLOC)
31 #endif
33 #ifdef OBJ_ELF
34 #define TARGET_FORMAT "elf32-xc16x"
35 #define LOCAL_LABEL_PREFIX '.'
36 #define LOCAL_LABEL(NAME) (NAME[0] == '.' && NAME[1] == 'L')
37 #define FAKE_LABEL_NAME ".L0\001"
38 #endif
40 #if ANSI_PROTOTYPES
41 struct fix;
42 struct internal_reloc;
43 #endif
45 #define WORKING_DOT_WORD
47 #define BFD_ARCH bfd_arch_xc16x
48 #define TC_COUNT_RELOC(x) 1
49 #define IGNORE_NONSTANDARD_ESCAPES
51 #define TC_RELOC_MANGLE(s,a,b,c) tc_reloc_mangle(a,b,c)
52 extern void tc_reloc_mangle (struct fix *, struct internal_reloc *, bfd_vma);
54 /* No shared lib support, so we don't need to ensure externally
55 visible symbols can be overridden. */
56 #define EXTERN_FORCE_RELOC 0
58 /* Minimum instruction is of 16 bits. */
59 #define DWARF2_LINE_MIN_INSN_LENGTH 2
61 #define DO_NOT_STRIP 0
62 #define LISTING_HEADER "Infineon XC16X GAS "
63 #define NEED_FX_R_TYPE 1
64 #define MD_PCREL_FROM_SECTION(FIX, SEC) md_pcrel_from_section (FIX, SEC)
65 extern long md_pcrel_from_section (struct fix *, segT);
67 #define md_operand(x)