| 1 | /* This file is tc-xc16x.h |
| 2 | Copyright (C) 2006-2019 Free Software Foundation, Inc. |
| 3 | Contributed by KPIT Cummins Infosystems |
| 4 | |
| 5 | This file is part of GAS, the GNU Assembler. |
| 6 | |
| 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) |
| 10 | any later version. |
| 11 | |
| 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. |
| 16 | |
| 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. */ |
| 21 | |
| 22 | #define TC_XC16X |
| 23 | |
| 24 | #define TARGET_BYTES_BIG_ENDIAN 0 |
| 25 | |
| 26 | #define TARGET_ARCH bfd_arch_xc16x |
| 27 | |
| 28 | #ifdef OBJ_ELF |
| 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" |
| 33 | #endif |
| 34 | |
| 35 | struct fix; |
| 36 | struct internal_reloc; |
| 37 | |
| 38 | #define WORKING_DOT_WORD |
| 39 | |
| 40 | #define BFD_ARCH bfd_arch_xc16x |
| 41 | #define TC_COUNT_RELOC(x) 1 |
| 42 | #define IGNORE_NONSTANDARD_ESCAPES |
| 43 | |
| 44 | #define TC_RELOC_MANGLE(s,a,b,c) tc_reloc_mangle(a,b,c) |
| 45 | extern void tc_reloc_mangle (struct fix *, struct internal_reloc *, bfd_vma); |
| 46 | |
| 47 | /* No shared lib support, so we don't need to ensure externally |
| 48 | visible symbols can be overridden. */ |
| 49 | #define EXTERN_FORCE_RELOC 0 |
| 50 | |
| 51 | /* Minimum instruction is of 16 bits. */ |
| 52 | #define DWARF2_LINE_MIN_INSN_LENGTH 2 |
| 53 | |
| 54 | #define DO_NOT_STRIP 0 |
| 55 | #define LISTING_HEADER "Infineon XC16X GAS " |
| 56 | #define NEED_FX_R_TYPE 1 |
| 57 | #define MD_PCREL_FROM_SECTION(FIX, SEC) md_pcrel_from_section (FIX, SEC) |
| 58 | extern long md_pcrel_from_section (struct fix *, segT); |
| 59 | |
| 60 | #define md_operand(x) |