* v850-opc.c: Close unterminated comment.
[deliverable/binutils-gdb.git] / gas / config / tc-m88k.h
CommitLineData
90d85bc4
RP
1/* m88k.h -- Assembler for the Motorola 88000
2 Contributed by Devon Bowen of Buffalo University
3 and Torbjorn Granlund of the Swedish Institute of Computer Science.
71dd3c40
ILT
4 Copyright (C) 1989, 90, 91, 92, 93, 94, 95, 1996
5 Free Software Foundation, Inc.
90d85bc4
RP
6
7This file is part of GAS, the GNU Assembler.
8
9GAS is free software; you can redistribute it and/or modify
10it under the terms of the GNU General Public License as published by
11the Free Software Foundation; either version 1, or (at your option)
12any later version.
13
14GAS is distributed in the hope that it will be useful,
15but WITHOUT ANY WARRANTY; without even the implied warranty of
16MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17GNU General Public License for more details.
18
19You should have received a copy of the GNU General Public License
20along with GAS; see the file COPYING. If not, write to
a2a5a4fa 21the Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
90d85bc4 22
c978e704
ILT
23#define TC_M88K
24
a920b693
ILT
25#define TARGET_BYTES_BIG_ENDIAN 1
26
c978e704
ILT
27#ifdef M88KCOFF
28#define COFF_MAGIC MC88OMAGIC
29#define BFD_ARCH bfd_arch_m88k
30#define COFF_FLAGS F_AR32W
31#endif
32
332fc09f 33#define NEED_FX_R_TYPE
d58bbca1 34#define TC_KEEP_FX_OFFSET
78805240 35#define TC_CONS_RELOC RELOC_32
332fc09f 36
90d85bc4
RP
37/* different type of relocation available in the m88k */
38
39enum reloc_type
40{
41 RELOC_LO16, /* lo16(sym) */
42 RELOC_HI16, /* hi16(sym) */
43 RELOC_PC16, /* bb0, bb1, bcnd */
44 RELOC_PC26, /* br, bsr */
45 RELOC_32, /* jump tables, etc */
46 RELOC_IW16, /* global access through linker regs 28 */
47 NO_RELOC
48};
49
50struct reloc_info_m88k
51{
355afbcd
KR
52 unsigned long int r_address;
53 unsigned int r_symbolnum:24;
54 unsigned int r_extern:1;
55 unsigned int r_pad:3;
56 enum reloc_type r_type:4;
57 long int r_addend;
90d85bc4
RP
58};
59
60#define relocation_info reloc_info_m88k
61
c978e704
ILT
62/* The m88k uses '@' to start local labels. */
63#define LEX_AT (LEX_BEGIN_NAME | LEX_NAME)
64#define LOCAL_LABEL(name) \
65 ((name[0] =='@' && (name [1] == 'L' || name [1] == '.')) \
66 || (name[0] == 'L' && name[1] == '0' && name[2] == '\001'))
332fc09f 67
8ff6f40e
ILT
68/* The m88k uses pseudo-ops with no leading period. */
69#define NO_PSEUDO_DOT
70
71/* Don't warn on word overflow; it happens on %hi relocs. */
72#undef WARN_SIGNED_OVERFLOW_WORD
73
332fc09f 74#define md_convert_frag(b,s,f) {as_fatal ("m88k convert_frag\n");}
c978e704
ILT
75
76/* We don't need to do anything special for undefined symbols. */
77#define md_undefined_symbol(s) 0
78
79/* We have no special operand handling. */
80#define md_operand(e)
81
82#ifdef M88KCOFF
83
84/* Whether a reloc should be output. */
85#define TC_COUNT_RELOC(fixp) ((fixp)->fx_addsy != NULL)
86
87/* Get the BFD reloc type to use for a gas fixS structure. */
88#define TC_COFF_FIX2RTYPE(fixp) tc_coff_fix2rtype (fixp)
89
90/* No special hook needed for symbols. */
91#define tc_coff_symbol_emit_hook(s)
92
a75f31ce
ILT
93/* Align sections to a four byte boundary. */
94#ifndef max
95#define max(a,b) (((a) > (b)) ? (a) : (b))
96#endif
97#define SUB_SEGMENT_ALIGN(SEG) max (section_alignment[(int) (SEG)], 4)
98
99/* We use a special alignment function to insert the correct nop
100 pattern in .init. */
71dd3c40
ILT
101extern int m88k_do_align PARAMS ((int, const char *, int));
102#define md_do_align(n,fill,len,l) if (m88k_do_align(n,fill,len)) goto l
a75f31ce 103
c978e704 104#endif /* M88KCOFF */
This page took 0.201888 seconds and 4 git commands to generate.