1 /* tc-rl78.h - header file for Renesas RL78
2 Copyright 2011-2013 Free Software Foundation, Inc.
4 This file is part of GAS, the GNU Assembler.
6 GAS is free software; you can redistribute it and/or modify
7 it under the terms of the GNU General Public License as published by
8 the Free Software Foundation; either version 3, or (at your option)
11 GAS is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 GNU General Public License for more details.
16 You should have received a copy of the GNU General Public License
17 along with GAS; see the file COPYING. If not, write to the Free
18 Software Foundation, 51 Franklin Street - Fifth Floor, Boston, MA
23 extern int target_little_endian
;
25 #define LISTING_HEADER "RL78 GAS LE"
26 #define LISTING_LHS_WIDTH 8
27 #define LISTING_WORD_SIZE 1
29 #define TARGET_ARCH bfd_arch_rl78
31 #define TARGET_BYTES_BIG_ENDIAN 0
33 #define TARGET_FORMAT "elf32-rl78"
35 /* We don't need to handle .word strangely. */
36 #define WORKING_DOT_WORD
38 /* Permit temporary numeric labels. */
39 #define LOCAL_LABELS_FB 1
40 /* But make sure that the binutils treat them as locals. */
41 #define LOCAL_LABEL_PREFIX '.'
43 /* Allow classic-style constants. */
44 #define NUMBERS_WITH_SUFFIX 1
46 /* .-foo gets turned into PC relative relocs. */
49 #define md_end rl78_md_end
50 extern void rl78_md_end (void);
52 #define TC_FRAG_TYPE struct rl78_bytesT *
53 #define TC_FRAG_INIT rl78_frag_init
54 extern void rl78_frag_init (fragS
*);
56 /* Call md_pcrel_from_section(), not md_pcrel_from(). */
57 #define MD_PCREL_FROM_SECTION(FIXP, SEC) md_pcrel_from_section (FIXP, SEC)
58 extern long md_pcrel_from_section (struct fix
*, segT
);
60 /* RL78 doesn't have a 32 bit PCREL relocations. */
61 #define TC_FORCE_RELOCATION_SUB_LOCAL(FIX, SEG) 1
63 #define TC_VALIDATE_FIX_SUB(FIX, SEG) \
64 rl78_validate_fix_sub (FIX)
65 extern int rl78_validate_fix_sub (struct fix
*);
67 #define TC_CONS_FIX_NEW(FRAG, WHERE, NBYTES, EXP) \
68 rl78_cons_fix_new (FRAG, WHERE, NBYTES, EXP)
69 extern void rl78_cons_fix_new (fragS
*, int, int, expressionS
*);
71 #define tc_fix_adjustable(x) 0
73 #define RELOC_EXPANSION_POSSIBLE 1
74 #define MAX_RELOC_EXPANSION 8
76 #define MAX_MEM_FOR_RS_ALIGN_CODE 8
77 #define HANDLE_ALIGN(FRAG) rl78_handle_align (FRAG)
78 extern void rl78_handle_align (fragS
*);
80 #define elf_tc_final_processing rl78_elf_final_processing
81 extern void rl78_elf_final_processing (void);
This page took 0.03073 seconds and 4 git commands to generate.