1  /* tc-lm32.h -- Header file for tc-lm32.c
       2     Copyright (C) 2008-2023 Free Software Foundation, Inc.
       3     Contributed by Jon Beniston <jon@beniston.com>
       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 along
      18     with GAS; see the file COPYING.  If not, write to the Free Software
      19     Foundation, 51 Franklin Street - Fifth Floor, Boston,
      20     MA 02110-1301, USA.  */
      21  
      22  #ifndef TC_LM32_H
      23  #define TC_LM32_H
      24  
      25  #define TARGET_FORMAT "elf32-lm32"
      26  #define TARGET_ARCH bfd_arch_lm32
      27  #define TARGET_MACH bfd_mach_lm32
      28  
      29  #define TARGET_BYTES_BIG_ENDIAN 1
      30  
      31  /* Permit temporary numeric labels.  */
      32  #define LOCAL_LABELS_FB 1
      33  
      34  #define WORKING_DOT_WORD
      35  
      36  /* Values passed to md_apply_fix3 don't include the symbol value.  */
      37  #define MD_APPLY_SYM_VALUE(FIX) 0
      38  
      39  #define md_operand(X)
      40  #define tc_gen_reloc gas_cgen_tc_gen_reloc
      41  
      42  /* Call md_pcrel_from_section(), not md_pcrel_from().  */
      43  #define MD_PCREL_FROM_SECTION(FIXP, SEC) md_pcrel_from_section (FIXP, SEC)
      44  
      45  extern bool lm32_fix_adjustable (struct fix *);
      46  #define tc_fix_adjustable(FIX) lm32_fix_adjustable (FIX)
      47  
      48  #endif /* TC_LM32_H */
      49