pulled in from hack's unfinished work
[binutils-gdb.git] / gas / config / tc-m88k.h
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.
4 Copyright (C) 1989, 1990, 1991 Free Software Foundation, Inc.
5
6 This file is part of GAS, the GNU Assembler.
7
8 GAS is free software; you can redistribute it and/or modify
9 it under the terms of the GNU General Public License as published by
10 the Free Software Foundation; either version 1, or (at your option)
11 any later version.
12
13 GAS is distributed in the hope that it will be useful,
14 but WITHOUT ANY WARRANTY; without even the implied warranty of
15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 GNU General Public License for more details.
17
18 You should have received a copy of the GNU General Public License
19 along with GAS; see the file COPYING. If not, write to
20 the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
21
22 /* different type of relocation available in the m88k */
23
24 enum reloc_type
25 {
26 RELOC_LO16, /* lo16(sym) */
27 RELOC_HI16, /* hi16(sym) */
28 RELOC_PC16, /* bb0, bb1, bcnd */
29 RELOC_PC26, /* br, bsr */
30 RELOC_32, /* jump tables, etc */
31 RELOC_IW16, /* global access through linker regs 28 */
32 NO_RELOC
33 };
34
35 struct reloc_info_m88k
36 {
37 unsigned long int r_address;
38 unsigned int r_symbolnum: 24;
39 unsigned int r_extern : 1;
40 unsigned int r_pad : 3;
41 enum reloc_type r_type : 4;
42 long int r_addend;
43 };
44
45 #define relocation_info reloc_info_m88k
46
47 #define LOCAL_LABEL(name) (name[0] =='@' \
48 && ( name [1] == 'L' || name [1] == '.' ))