Support for the Z8k
This commit is contained in:
parent
3ab9faab12
commit
163107a143
@ -108,6 +108,8 @@ tc-sparc.c
|
|||||||
tc-sparc.h
|
tc-sparc.h
|
||||||
tc-vax.c
|
tc-vax.c
|
||||||
tc-vax.h
|
tc-vax.h
|
||||||
|
tc-z8k.c
|
||||||
|
tc-z8k.h
|
||||||
te-dpx2.h
|
te-dpx2.h
|
||||||
te-generic.h
|
te-generic.h
|
||||||
te-i386aix.h
|
te-i386aix.h
|
||||||
@ -117,6 +119,10 @@ te-sun3.h
|
|||||||
te-sysv32.h
|
te-sysv32.h
|
||||||
vax-inst.h
|
vax-inst.h
|
||||||
vms
|
vms
|
||||||
|
<<<<<<< .Sanitize
|
||||||
|
z8k.mt
|
||||||
|
=======
|
||||||
|
>>>>>>> 1.23
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -138,7 +144,10 @@ echo Done in `pwd`.
|
|||||||
#
|
#
|
||||||
#
|
#
|
||||||
# $Log$
|
# $Log$
|
||||||
# Revision 1.23 1992/07/23 18:23:44 gumby
|
# Revision 1.24 1992/08/25 22:12:38 sac
|
||||||
|
# Support for the Z8k
|
||||||
|
#
|
||||||
|
# Revision 1.23 1992/07/23 18:23:44 gumby
|
||||||
# Keep OSE support
|
# Keep OSE support
|
||||||
#
|
#
|
||||||
# Revision 1.22 1992/05/07 00:24:39 sac
|
# Revision 1.22 1992/05/07 00:24:39 sac
|
||||||
|
@ -1,3 +1,7 @@
|
|||||||
|
Tue Aug 25 15:11:08 1992 Steve Chamberlain (sac@thepub.cygnus.com)
|
||||||
|
|
||||||
|
* z8k.c, z8k.h, z8k.mt: z8000 support stuff
|
||||||
|
|
||||||
Mon Aug 24 12:45:12 1992 Ian Lance Taylor (ian@cygnus.com)
|
Mon Aug 24 12:45:12 1992 Ian Lance Taylor (ian@cygnus.com)
|
||||||
|
|
||||||
* tc-m68k.c: use TARGET_CPU to choose default cpu type.
|
* tc-m68k.c: use TARGET_CPU to choose default cpu type.
|
||||||
|
@ -1619,7 +1619,8 @@ static void DEFUN_VOID(remove_subsegs)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
int machine;
|
||||||
|
int coff_flags;
|
||||||
extern void DEFUN_VOID(write_object_file)
|
extern void DEFUN_VOID(write_object_file)
|
||||||
{
|
{
|
||||||
int i;
|
int i;
|
||||||
@ -1638,7 +1639,7 @@ extern void DEFUN_VOID(write_object_file)
|
|||||||
exit(42);
|
exit(42);
|
||||||
}
|
}
|
||||||
bfd_set_format(abfd, bfd_object);
|
bfd_set_format(abfd, bfd_object);
|
||||||
bfd_set_arch_mach(abfd, BFD_ARCH, 0);
|
bfd_set_arch_mach(abfd, BFD_ARCH, machine);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -1724,7 +1725,7 @@ extern void DEFUN_VOID(write_object_file)
|
|||||||
|
|
||||||
filehdr.f_magic = COFF_MAGIC;
|
filehdr.f_magic = COFF_MAGIC;
|
||||||
filehdr.f_timdat = time(0);
|
filehdr.f_timdat = time(0);
|
||||||
filehdr.f_flags = COFF_FLAGS ;
|
filehdr.f_flags = COFF_FLAGS | coff_flags;
|
||||||
|
|
||||||
if (!had_lineno)
|
if (!had_lineno)
|
||||||
{
|
{
|
||||||
|
@ -33,8 +33,10 @@
|
|||||||
#define internal_lineno bfd_internal_lineno
|
#define internal_lineno bfd_internal_lineno
|
||||||
#include "coff/internal.h"
|
#include "coff/internal.h"
|
||||||
#undef internal_lineno
|
#undef internal_lineno
|
||||||
|
#if defined(TC_Z8K)
|
||||||
#if defined(TC_H8300)
|
#include "coff/z8k.h"
|
||||||
|
#define TARGET_FORMAT "coff-z8k"
|
||||||
|
#elif defined(TC_H8300)
|
||||||
#include "coff/h8300.h"
|
#include "coff/h8300.h"
|
||||||
#define TARGET_FORMAT "coff-h8300"
|
#define TARGET_FORMAT "coff-h8300"
|
||||||
#elif defined(TC_A29K)
|
#elif defined(TC_A29K)
|
||||||
|
1051
gas/config/tc-z8k.c
Normal file
1051
gas/config/tc-z8k.c
Normal file
File diff suppressed because it is too large
Load Diff
41
gas/config/tc-z8k.h
Normal file
41
gas/config/tc-z8k.h
Normal file
@ -0,0 +1,41 @@
|
|||||||
|
/* This file is tc-z8k.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. */
|
||||||
|
|
||||||
|
|
||||||
|
#define TC_Z8K
|
||||||
|
|
||||||
|
/* This macro translates between an internal fix and an coff reloc type */
|
||||||
|
#define TC_COFF_FIX2RTYPE(fixP) abort();
|
||||||
|
|
||||||
|
#define BFD_ARCH bfd_arch_z8k
|
||||||
|
#define COFF_MAGIC 0x8000
|
||||||
|
#define TC_COUNT_RELOC(x) (1)
|
||||||
|
#define IGNORE_NONSTANDARD_ESCAPES
|
||||||
|
|
||||||
|
#define TC_RELOC_MANGLE(a,b,c) tc_reloc_mangle(a,b,c)
|
||||||
|
|
||||||
|
#define DO_NOT_STRIP 0
|
||||||
|
#define DO_STRIP 0
|
||||||
|
#define LISTING_HEADER "Zilog Z8000 GAS "
|
||||||
|
#define NEED_FX_R_TYPE 1
|
||||||
|
#define RELOC_32 1234
|
||||||
|
#define COFF_FLAGS 1
|
||||||
|
|
||||||
|
/* end of tc-h8300.h */
|
5
gas/config/z8k.mt
Normal file
5
gas/config/z8k.mt
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
TARG_CPU_DEPENDENTS=$(srcdir)/../include/opcode/h8300.h
|
||||||
|
LOCAL_LOADLIBES=../bfd/libbfd.a
|
||||||
|
TDEFINES=-DBFD_HEADERS -DMANY_SEGMENTS -DBFD
|
||||||
|
|
||||||
|
CC=gcc
|
Loading…
x
Reference in New Issue
Block a user