tc-ft32.h 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. /* tc-ft32.h -- Header file for tc-ft32.c.
  2. Copyright (C) 2013-2015 Free Software Foundation, Inc.
  3. Contributed by FTDI (support@ftdichip.com)
  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 along
  14. with GAS; see the file COPYING. If not, write to the Free Software
  15. Foundation, 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA. */
  16. #define TC_FT32 1
  17. #define TARGET_BYTES_BIG_ENDIAN 0
  18. #define WORKING_DOT_WORD
  19. /* This macro is the BFD architecture to pass to `bfd_set_arch_mach'. */
  20. const char *ft32_target_format;
  21. #define DEFAULT_TARGET_FORMAT "elf32-ft32"
  22. #define TARGET_FORMAT ft32_target_format
  23. #define TARGET_ARCH bfd_arch_ft32
  24. #define md_undefined_symbol(NAME) 0
  25. /* These macros must be defined, but is will be a fatal assembler
  26. error if we ever hit them. */
  27. #define md_estimate_size_before_relax(A, B) (as_fatal (_("estimate size\n")), 0)
  28. #define md_convert_frag(B, S, F) (as_fatal (_("convert_frag\n")))
  29. /* If you define this macro, it should return the offset between the
  30. address of a PC relative fixup and the position from which the PC
  31. relative adjustment should be made. On many processors, the base
  32. of a PC relative instruction is the next instruction, so this
  33. macro would return the length of an instruction. */
  34. // #define MD_PCREL_FROM_SECTION(FIX, SEC) md_pcrel_from (FIX)
  35. // extern long md_pcrel_from (struct fix *);
  36. /* PC relative operands are relative to the start of the opcode, and
  37. the operand is always one byte into the opcode. */
  38. #define md_pcrel_from(FIX) \
  39. ((FIX)->fx_where + (FIX)->fx_frag->fr_address - 1)
  40. #define md_section_align(SEGMENT, SIZE) (SIZE)
  41. #define md_operand(x)