]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - gas/config/tc-s12z.h
Update year range in copyright notice of binutils files
[thirdparty/binutils-gdb.git] / gas / config / tc-s12z.h
CommitLineData
7b4ae824 1/* tc-s12z.h -- Header file for tc-s12z.c.
b3adc24a 2 Copyright (C) 1999-2020 Free Software Foundation, Inc.
7b4ae824
JD
3
4 This file is part of GAS, the GNU Assembler.
5
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)
9 any later version.
10
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.
15
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
19 02110-1301, USA. */
20
21struct fix;
22
7b4ae824
JD
23#define TARGET_BYTES_BIG_ENDIAN 1
24
25/* Motorola assembler specs does not require '.' before pseudo-ops. */
26#define NO_PSEUDO_DOT 1
27
28/* The target BFD architecture. */
29#define TARGET_ARCH (s12z_arch ())
30extern enum bfd_architecture s12z_arch (void);
31
32#define TARGET_MACH (s12z_mach ())
33extern int s12z_mach (void);
34
35#define TARGET_FORMAT (s12z_arch_format ())
36extern const char *s12z_arch_format (void);
37
38#define LISTING_WORD_SIZE 1 /* A word is 1 bytes */
39#define LISTING_LHS_WIDTH 4 /* One word on the first line */
40#define LISTING_LHS_WIDTH_SECOND 4 /* One word on the second line */
41#define LISTING_LHS_CONT_LINES 4 /* And 4 lines max */
42#define LISTING_HEADER s12z_listing_header ()
43extern const char *s12z_listing_header (void);
44
45/* Permit temporary numeric labels. */
46#define LOCAL_LABELS_FB 1
47
48#define tc_init_after_args s12z_init_after_args
49extern void s12z_init_after_args (void);
50
51#define md_parse_long_option s12z_parse_long_option
52extern int s12z_parse_long_option (char *);
53
54#define DWARF2_LINE_MIN_INSN_LENGTH 1
55
56/* Use 32-bit address to represent a symbol address so that we can
57 represent them with their page number. */
58#define DWARF2_ADDR_SIZE(bfd) 4
59
60/* We don't need to handle .word strangely. */
61#define WORKING_DOT_WORD
62
63#define md_number_to_chars number_to_chars_bigendian
64
65/* Relax table to translate short relative branches (-128..127) into
66 absolute branches. */
67#define TC_GENERIC_RELAX_TABLE md_relax_table
68extern struct relax_type md_relax_table[];
69
70/* GAS only handles relaxations for pc-relative data targeting addresses
71 in the same segment, so we have to handle the rest on our own. */
72#define md_relax_frag(SEG, FRAGP, STRETCH) \
73 ((FRAGP)->fr_symbol != NULL \
74 && S_GET_SEGMENT ((FRAGP)->fr_symbol) == (SEG) \
75 ? relax_frag (SEG, FRAGP, STRETCH) \
76 : s12z_relax_frag (SEG, FRAGP, STRETCH))
77extern long s12z_relax_frag (segT, fragS*, long);
78
79#define TC_HANDLES_FX_DONE
80
81#define DIFF_EXPR_OK /* .-foo gets turned into PC relative relocs */
82
83/* Values passed to md_apply_fix don't include the symbol value. */
84#define MD_APPLY_SYM_VALUE(FIX) 0
85
86/* No shared lib support, so we don't need to ensure externally
87 visible symbols can be overridden. */
88#define EXTERN_FORCE_RELOC 0
89
90#define TC_FORCE_RELOCATION(fix) tc_s12z_force_relocation (fix)
91extern int tc_s12z_force_relocation (struct fix *);
92
93#define tc_fix_adjustable(X) tc_s12z_fix_adjustable(X)
94extern int tc_s12z_fix_adjustable (struct fix *);
95
96#define md_operand(x)
97
98#define elf_tc_final_processing s12z_elf_final_processing
99extern void s12z_elf_final_processing (void);
100
101#define tc_print_statistics(FILE) s12z_print_statistics (FILE)
102extern void s12z_print_statistics (FILE *);