tc-xstormy16.h 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. /* tc-xstormy16.h -- Header file for tc-xstormy16.c.
  2. Copyright (C) 2000-2015 Free Software Foundation, Inc.
  3. This file is part of GAS, the GNU Assembler.
  4. GAS is free software; you can redistribute it and/or modify
  5. it under the terms of the GNU General Public License as published by
  6. the Free Software Foundation; either version 3, or (at your option)
  7. any later version.
  8. GAS is distributed in the hope that it will be useful,
  9. but WITHOUT ANY WARRANTY; without even the implied warranty of
  10. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  11. GNU General Public License for more details.
  12. You should have received a copy of the GNU General Public License
  13. along with GAS; see the file COPYING. If not, write to
  14. the Free Software Foundation, 51 Franklin Street - Fifth Floor,
  15. Boston, MA 02110-1301, USA. */
  16. #define TC_XSTORMY16
  17. #define LISTING_HEADER "XSTORMY16 GAS "
  18. /* The target BFD architecture. */
  19. #define TARGET_ARCH bfd_arch_xstormy16
  20. #define TARGET_FORMAT "elf32-xstormy16"
  21. #define TARGET_BYTES_BIG_ENDIAN 0
  22. /* Permit temporary numeric labels. */
  23. #define LOCAL_LABELS_FB 1
  24. #define DIFF_EXPR_OK /* foo-. gets turned into PC relative relocs. */
  25. /* We don't need to handle .word strangely. */
  26. #define WORKING_DOT_WORD
  27. /* Values passed to md_apply_fix don't include the symbol value. */
  28. #define MD_APPLY_SYM_VALUE(FIX) 0
  29. #define md_apply_fix xstormy16_md_apply_fix
  30. #define tc_fix_adjustable(FIX) xstormy16_fix_adjustable (FIX)
  31. extern bfd_boolean xstormy16_fix_adjustable (struct fix *);
  32. #define TC_FORCE_RELOCATION(fix) xstormy16_force_relocation (fix)
  33. extern int xstormy16_force_relocation (struct fix *);
  34. #define TC_HANDLES_FX_DONE
  35. #define tc_gen_reloc gas_cgen_tc_gen_reloc
  36. /* Call md_pcrel_from_section(), not md_pcrel_from(). */
  37. #define MD_PCREL_FROM_SECTION(FIX, SEC) md_pcrel_from_section (FIX, SEC)
  38. extern long md_pcrel_from_section (struct fix *, segT);
  39. #define TC_CONS_FIX_NEW xstormy16_cons_fix_new
  40. extern void xstormy16_cons_fix_new (fragS *f, int, int, expressionS *,
  41. bfd_reloc_code_real_type);
  42. #define md_cgen_record_fixup_exp xstormy16_cgen_record_fixup_exp
  43. /* Minimum instruction is two bytes. */
  44. #define DWARF2_LINE_MIN_INSN_LENGTH 2
  45. /* This target is buggy, and sets fix size too large. */
  46. #define TC_FX_SIZE_SLACK(FIX) 2