1214571Sdim/* tc-score.h -- Score specific file for assembler 2214571Sdim Copyright 2006 Free Software Foundation, Inc. 3214571Sdim Contributed by: 4214571Sdim Mei Ligang (ligang@sunnorth.com.cn) 5214571Sdim Pei-Lin Tsai (pltsai@sunplus.com) 6214571Sdim 7214571Sdim This file is part of GAS, the GNU Assembler. 8214571Sdim 9214571Sdim GAS is free software; you can redistribute it and/or modify 10214571Sdim it under the terms of the GNU General Public License as published by 11214571Sdim the Free Software Foundation; either version 2, or (at your option) 12214571Sdim any later version. 13214571Sdim 14214571Sdim GAS is distributed in the hope that it will be useful, 15214571Sdim but WITHOUT ANY WARRANTY; without even the implied warranty of 16214571Sdim MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 17214571Sdim GNU General Public License for more details. 18214571Sdim 19214571Sdim You should have received a copy of the GNU General Public License 20214571Sdim along with GAS; see the file COPYING. If not, write to the Free 21214571Sdim Software Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, 22214571Sdim MA 02110-1301, USA. */ 23214571Sdim 24214571Sdim#ifndef TC_SCORE 25214571Sdim#define TC_SCORE 26214571Sdim 27214571Sdim#define TARGET_ARCH bfd_arch_score 28214571Sdim#define WORKING_DOT_WORD 29214571Sdim#define DIFF_EXPR_OK 30214571Sdim#define RELOC_EXPANSION_POSSIBLE 31214571Sdim#define MAX_RELOC_EXPANSION 2 32214571Sdim#define MAX_MEM_FOR_RS_ALIGN_CODE (3 + 4) 33214571Sdim 34214571Sdim#define md_undefined_symbol(name) NULL 35214571Sdim 36214571Sdim#define TARGET_FORMAT (target_big_endian ? "elf32-bigscore" : "elf32-littlescore") 37214571Sdim 38214571Sdim#define md_relax_frag(segment, fragp, stretch) score_relax_frag (segment, fragp, stretch) 39214571Sdimextern int score_relax_frag (asection *, struct frag *, long); 40214571Sdim 41214571Sdim#define md_frag_check(fragp) score_frag_check (fragp) 42214571Sdimextern void score_frag_check (fragS *); 43214571Sdim 44214571Sdim#define TC_VALIDATE_FIX(FIXP, SEGTYPE, SKIP) score_validate_fix (FIXP) 45214571Sdimextern void score_validate_fix (struct fix *); 46214571Sdim 47214571Sdim#define TC_FORCE_RELOCATION(FIXP) score_force_relocation (FIXP) 48214571Sdimextern int score_force_relocation (struct fix *); 49214571Sdim 50214571Sdim#define tc_fix_adjustable(fixp) score_fix_adjustable (fixp) 51214571Sdimextern bfd_boolean score_fix_adjustable (struct fix *); 52214571Sdim 53214571Sdim#define elf_tc_final_processing score_elf_final_processing 54214571Sdimextern void score_elf_final_processing (void); 55214571Sdim 56214571Sdimstruct score_tc_frag_data 57214571Sdim{ 58214571Sdim unsigned int is_insn; 59214571Sdim struct fix *fixp; 60214571Sdim}; 61214571Sdim 62214571Sdim#define TC_FRAG_TYPE struct score_tc_frag_data 63214571Sdim 64214571Sdim#define TC_FRAG_INIT(FRAGP) \ 65214571Sdim do \ 66214571Sdim { \ 67214571Sdim (FRAGP)->tc_frag_data.is_insn = (((FRAGP)->fr_type == rs_machine_dependent) ? 1 : 0); \ 68214571Sdim } \ 69214571Sdim while (0) 70214571Sdim 71214571Sdim#ifdef OBJ_ELF 72214571Sdim#define GLOBAL_OFFSET_TABLE_NAME "_GLOBAL_OFFSET_TABLE_" 73214571Sdim#else 74214571Sdim#define GLOBAL_OFFSET_TABLE_NAME "__GLOBAL_OFFSET_TABLE_" 75214571Sdim#endif 76214571Sdim 77214571Sdimenum score_pic_level 78214571Sdim{ 79214571Sdim NO_PIC, 80214571Sdim PIC 81214571Sdim}; 82214571Sdim 83214571Sdim#endif /*TC_SCORE */ 84