tc-d10v.h 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. /* tc-d10v.h -- Header file for tc-d10v.c.
  2. Copyright (C) 1996-2015 Free Software Foundation, Inc.
  3. Written by Martin Hunt, Cygnus Support.
  4. This file is part of GAS, the GNU Assembler.
  5. GAS is free software; you can redistribute it and/or modify
  6. it under the terms of the GNU General Public License as published by
  7. the Free Software Foundation; either version 3, or (at your option)
  8. any later version.
  9. GAS is distributed in the hope that it will be useful,
  10. but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  12. GNU General Public License for more details.
  13. You should have received a copy of the GNU General Public License
  14. along with GAS; see the file COPYING. If not, write to the Free
  15. Software Foundation, 51 Franklin Street - Fifth Floor, Boston, MA
  16. 02110-1301, USA. */
  17. #define TC_D10V
  18. #define TARGET_BYTES_BIG_ENDIAN 1
  19. /* The target BFD architecture. */
  20. #define TARGET_ARCH bfd_arch_d10v
  21. #define TARGET_FORMAT "elf32-d10v"
  22. /* Call md_pcrel_from_section, not md_pcrel_from. */
  23. #define MD_PCREL_FROM_SECTION(FIX, SEC) md_pcrel_from_section (FIX, SEC)
  24. struct fix;
  25. long md_pcrel_from_section (struct fix *, segT);
  26. /* Permit temporary numeric labels. */
  27. #define LOCAL_LABELS_FB 1
  28. /* .-foo gets turned into PC relative relocs. */
  29. #define DIFF_EXPR_OK
  30. /* We don't need to handle .word strangely. */
  31. #define WORKING_DOT_WORD
  32. #define md_number_to_chars number_to_chars_bigendian
  33. int d10v_cleanup (void);
  34. void d10v_frob_label (symbolS *);
  35. #define md_cleanup() d10v_cleanup ()
  36. #define md_do_align(a,b,c,d,e) d10v_cleanup ()
  37. #define tc_frob_label(sym) d10v_frob_label (sym)
  38. #define tc_fix_adjustable(FIX) d10v_fix_adjustable(FIX)
  39. bfd_boolean d10v_fix_adjustable (struct fix *);
  40. /* Values passed to md_apply_fix don't include the symbol value. */
  41. #define MD_APPLY_SYM_VALUE(FIX) 0
  42. /* No shared lib support, so we don't need to ensure externally
  43. visible symbols can be overridden. */
  44. #define EXTERN_FORCE_RELOC 0
  45. #define md_flush_pending_output d10v_cleanup