1 /* tc-score.h -- Score specific file for assembler
2 Copyright 2006, 2007 Free Software Foundation, Inc.
4 Mei Ligang (ligang@sunnorth.com.cn)
5 Pei-Lin Tsai (pltsai@sunplus.com)
7 This file is part of GAS, the GNU Assembler.
9 GAS is free software; you can redistribute it and/or modify
10 it under the terms of the GNU General Public License as published by
11 the Free Software Foundation; either version 3, or (at your option)
14 GAS is distributed in the hope that it will be useful,
15 but WITHOUT ANY WARRANTY; without even the implied warranty of
16 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 GNU General Public License for more details.
19 You should have received a copy of the GNU General Public License
20 along with GAS; see the file COPYING. If not, write to the Free
21 Software Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston,
22 MA 02110-1301, USA. */
27 #define TARGET_ARCH bfd_arch_score
28 #define WORKING_DOT_WORD
30 #define RELOC_EXPANSION_POSSIBLE
31 #define MAX_RELOC_EXPANSION 2
32 #define MAX_MEM_FOR_RS_ALIGN_CODE (3 + 4)
34 #define md_undefined_symbol(name) NULL
36 #define TARGET_FORMAT (target_big_endian ? "elf32-bigscore" : "elf32-littlescore")
38 #define md_relax_frag(segment, fragp, stretch) score_relax_frag (segment, fragp, stretch)
39 extern int score_relax_frag (asection
*, struct frag
*, long);
41 #define md_frag_check(fragp) score_frag_check (fragp)
42 extern void score_frag_check (fragS
*);
44 #define TC_VALIDATE_FIX(FIXP, SEGTYPE, SKIP) score_validate_fix (FIXP)
45 extern void score_validate_fix (struct fix
*);
47 #define TC_FORCE_RELOCATION(FIXP) score_force_relocation (FIXP)
48 extern int score_force_relocation (struct fix
*);
50 #define tc_fix_adjustable(fixp) score_fix_adjustable (fixp)
51 extern bfd_boolean
score_fix_adjustable (struct fix
*);
53 #define elf_tc_final_processing score_elf_final_processing
54 extern void score_elf_final_processing (void);
56 struct score_tc_frag_data
62 #define TC_FRAG_TYPE struct score_tc_frag_data
64 #define TC_FRAG_INIT(FRAGP) \
67 (FRAGP)->tc_frag_data.is_insn = (((FRAGP)->fr_type == rs_machine_dependent) ? 1 : 0); \
72 #define GLOBAL_OFFSET_TABLE_NAME "_GLOBAL_OFFSET_TABLE_"
74 #define GLOBAL_OFFSET_TABLE_NAME "__GLOBAL_OFFSET_TABLE_"