tc-ip2k.h 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. /* tc-ip2k.h -- Header file for tc-ip2k.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_IP2K
  17. #define LISTING_HEADER "IP2xxx GAS "
  18. /* The target BFD architecture. */
  19. #define TARGET_ARCH bfd_arch_ip2k
  20. #define TARGET_FORMAT "elf32-ip2k"
  21. #define TARGET_BYTES_BIG_ENDIAN 1
  22. /* Permit temporary numeric labels. */
  23. #define LOCAL_LABELS_FB 1
  24. /* .-foo gets turned into PC relative relocs. */
  25. #define DIFF_EXPR_OK
  26. /* We don't need to handle .word strangely. */
  27. #define WORKING_DOT_WORD
  28. #define LITERAL_PREFIXDOLLAR_HEX
  29. #define LITERAL_PREFIXPERCENT_BIN
  30. #define DOUBLESLASH_LINE_COMMENTS
  31. /* Values passed to md_apply_fix don't include the symbol value. */
  32. #define MD_APPLY_SYM_VALUE(FIX) 0
  33. #define md_apply_fix ip2k_apply_fix
  34. #define TC_HANDLES_FX_DONE
  35. /* No shared lib support, so we don't need to ensure externally
  36. visible symbols can be overridden. */
  37. #define EXTERN_FORCE_RELOC 0
  38. #define TC_FORCE_RELOCATION(FIX) ip2k_force_relocation (FIX)
  39. extern int ip2k_force_relocation (struct fix *);
  40. #define tc_gen_reloc gas_cgen_tc_gen_reloc
  41. #define md_elf_section_flags ip2k_elf_section_flags
  42. extern int ip2k_elf_section_flags (flagword, bfd_vma, int);
  43. #define md_operand(x) gas_cgen_md_operand (x)
  44. extern void gas_cgen_md_operand (expressionS *);