diff options
author | Ian Lance Taylor <ian@airs.com> | 1992-09-09 18:38:16 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@airs.com> | 1992-09-09 18:38:16 +0000 |
commit | 3ad9ec6a7b491be1e1224861f31b351720fa1df0 (patch) | |
tree | 90c69136274493011976f4b512a566a8aecb0ab2 /gas/config/tc-m68k.h | |
parent | b53ccaacae4537af9cdc9b037f49f16467f84ea4 (diff) | |
download | gdb-3ad9ec6a7b491be1e1224861f31b351720fa1df0.zip gdb-3ad9ec6a7b491be1e1224861f31b351720fa1df0.tar.gz gdb-3ad9ec6a7b491be1e1224861f31b351720fa1df0.tar.bz2 |
Wed Sep 9 11:10:24 1992 Ian Lance Taylor (ian@cygnus.com)
* tc-m68k.c (m68k_ip, m68k_ip_op, get_num, try_moto_index): merge
Motorola and MIT syntax; gas can now assemble either type of
file.
tc-m68kmote.c, tc-m68kmote.h: removed now superfluous files.
From Steve Chamberlain:
m68kcoff.mt: for m68k COFF.
obj-coffbfd.c: (fixup_mdeps) added
(size_section) removed bad sanity check
(fill_section) added rs_machine_dependent case
(write_object_file) call fixup_mdeps
(fixup_segment) set fx_subsy to 0.
obj-coffbfd.h: define WORKING_DOT_WORD (too hard to support) and
handle m68k.
tc-m68k.c, config/tc-m68k.h: added m68k COFF support and Motorala
pseudo ops.
Diffstat (limited to 'gas/config/tc-m68k.h')
-rw-r--r-- | gas/config/tc-m68k.h | 30 |
1 files changed, 28 insertions, 2 deletions
diff --git a/gas/config/tc-m68k.h b/gas/config/tc-m68k.h index 0a7aa50..17f46e9 100644 --- a/gas/config/tc-m68k.h +++ b/gas/config/tc-m68k.h @@ -1,3 +1,23 @@ +/* This file is tc-m68k.h + + Copyright (C) 1987-1992 Free Software Foundation, Inc. + + This file is part of GAS, the GNU Assembler. + + GAS is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + + GAS is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with GAS; see the file COPYING. If not, write to + the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */ + /* * This file is tp-generic.h and is intended to be a template for * target processor specific header files. @@ -5,6 +25,14 @@ #define TC_M68K 1 + +#define COFF_MAGIC MC68MAGIC +#define BFD_ARCH bfd_arch_m68k +#define COFF_FLAGS F_AR32W +#define TC_COUNT_RELOC(x) ((x)->fx_addsy||(x)->fx_subsy||(x)->fx_offset) + +#define TC_COFF_FIX2RTYPE(fixP) tc_coff_fix2rtype(fixP) +#define TC_COFF_SIZEMACHDEP(frag) tc_coff_sizemachdep(frag) #ifdef TE_SUN3 /* This variable contains the value to write out at the beginning of the a.out file. The 2<<16 means that this is a 68020 file instead @@ -14,8 +42,6 @@ #endif /* TE_SUN3 */ #define AOUT_MACHTYPE 0x2 -#define REVERSE_SORT_RELOCS /* FIXME-NOW: this line can be removed. */ -#define LOCAL_LABELS_FB #define tc_crawl_symbol_chain(a) {;} /* not used */ #define tc_headers_hook(a) {;} /* not used */ |