1 /* This file is tc-xc16x.h
2 Copyright 2006, 2007 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 3, or (at your option)
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
24 #define TARGET_BYTES_BIG_ENDIAN 0
26 #define TARGET_ARCH bfd_arch_xc16x
29 #define TARGET_FORMAT "elf32-xc16x"
30 #define LOCAL_LABEL_PREFIX '.'
31 #define LOCAL_LABEL(NAME) (NAME[0] == '.' && NAME[1] == 'L')
32 #define FAKE_LABEL_NAME ".L0\001"
37 struct internal_reloc;
40 #define WORKING_DOT_WORD
42 #define BFD_ARCH bfd_arch_xc16x
43 #define TC_COUNT_RELOC(x) 1
44 #define IGNORE_NONSTANDARD_ESCAPES
46 #define TC_RELOC_MANGLE(s,a,b,c) tc_reloc_mangle(a,b,c)
47 extern void tc_reloc_mangle (struct fix *, struct internal_reloc *, bfd_vma);
49 /* No shared lib support, so we don't need to ensure externally
50 visible symbols can be overridden. */
51 #define EXTERN_FORCE_RELOC 0
53 /* Minimum instruction is of 16 bits. */
54 #define DWARF2_LINE_MIN_INSN_LENGTH 2
56 #define DO_NOT_STRIP 0
57 #define LISTING_HEADER "Infineon XC16X GAS "
58 #define NEED_FX_R_TYPE 1
59 #define MD_PCREL_FROM_SECTION(FIX, SEC) md_pcrel_from_section (FIX, SEC)
60 extern long md_pcrel_from_section (struct fix *, segT);