diff options
author | John Gilmore <gnu@cygnus> | 1991-10-25 10:17:52 +0000 |
---|---|---|
committer | John Gilmore <gnu@cygnus> | 1991-10-25 10:17:52 +0000 |
commit | 156e38523a9a52deb03ae8aedb382e0dda4ad9b5 (patch) | |
tree | 157ec155d983e928851c96ac282e2f883b235e94 | |
parent | 4a29cb1e7e5958c1cd738f26e1619bdce0b65a77 (diff) | |
download | fsf-binutils-gdb-156e38523a9a52deb03ae8aedb382e0dda4ad9b5.zip fsf-binutils-gdb-156e38523a9a52deb03ae8aedb382e0dda4ad9b5.tar.gz fsf-binutils-gdb-156e38523a9a52deb03ae8aedb382e0dda4ad9b5.tar.bz2 |
* Rename COFF-related files in `coff-ARCH.c' form.
coff-a29k.c, coff-i386.c, coff-i960.c, coff-m68k.c, coff-m88k.c,
coff-mips.c, coff-rs6000.c to be exact.
-rw-r--r-- | bfd/.Sanitize | 21 | ||||
-rw-r--r-- | bfd/ChangeLog | 10 | ||||
-rw-r--r-- | bfd/Makefile.in | 41 | ||||
-rw-r--r-- | bfd/coff-a29k.c | 2 | ||||
-rw-r--r-- | bfd/coff-m88k.c | 53 | ||||
-rw-r--r-- | bfd/coff-rs6000.c | 8 |
6 files changed, 74 insertions, 61 deletions
diff --git a/bfd/.Sanitize b/bfd/.Sanitize index 9d3ba70..6b0a54f 100644 --- a/bfd/.Sanitize +++ b/bfd/.Sanitize @@ -32,7 +32,6 @@ ChangeLog Makefile.in TODO VERSION -amdcoff.c aout32.c aout64.c aoutf1.h @@ -43,20 +42,24 @@ bfd-in.h bfd.c bout.c cache.c +coff-a29k.c +coff-i386.c +coff-i960.c +coff-m68k.c +coff-m88k.c +coff-mips.c +coff-rs6000.c coffcode.h config configure.in core.c demo64.c -ecoff.c elf.c filemode.c format.c host-aout.c hosts i386aout.c -i386coff.c -icoff.c ieee.c libaout.h libbfd-in.h @@ -77,13 +80,10 @@ libcoff-in.h libcoff.h libieee.h liboasys.h -m68kcoff.c -m88k-bcs.c newsos3.c oasys.c opncls.c reloc.c -rs6000coff.c section.c srec.c sunos.c @@ -115,7 +115,12 @@ echo Done in `pwd`. # # # $Log$ -# Revision 1.26 1991/10/25 07:16:59 gnu +# Revision 1.27 1991/10/25 10:17:41 gnu +# * Rename COFF-related files in `coff-ARCH.c' form. +# coff-a29k.c, coff-i386.c, coff-i960.c, coff-m68k.c, coff-m88k.c, +# coff-mips.c, coff-rs6000.c to be exact. +# +# Revision 1.26 1991/10/25 07:16:59 gnu # RS/6000 support # # Revision 1.25 1991/10/15 07:29:13 bothner diff --git a/bfd/ChangeLog b/bfd/ChangeLog index 45e6961..1916fef 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,13 @@ +Fri Oct 25 02:48:19 1991 John Gilmore (gnu at cygnus.com) + + * Rename COFF-related files in `coff-ARCH.c' form. + coff-a29k.c, coff-i386.c, coff-i960.c, coff-m68k.c, coff-m88k.c, + coff-mips.c, coff-rs6000.c to be exact. + + * Makefile.in: Only supply TARGET_DEFAULTS to targets.c, reducing + make output clutter. + * config/mt-*: Ditto. + Thu Oct 24 22:40:07 1991 John Gilmore (gnu at cygnus.com) RS/6000 support, by Metin G. Ozisik, Mimi Phûông-Thåo Võ, and diff --git a/bfd/Makefile.in b/bfd/Makefile.in index 2dcea5c..6738447 100644 --- a/bfd/Makefile.in +++ b/bfd/Makefile.in @@ -46,11 +46,10 @@ BFD_LIBS = libbfd.o opncls.o bfd.o archive.o targets.o cache.o \ BFD_MACHINES = cpu-h8300.o cpu-i960.o cpu-sparc.o cpu-m68k.o cpu-m88k.o \ cpu-vax.o cpu-mips.o cpu-a29k.o cpu-i386.o cpu-rs6000.o -BFD_BACKENDS = oasys.o ieee.o srec.o \ +BFD_BACKENDS = oasys.o ieee.o srec.o elf.o \ aout64.o aout32.o demo64.o sunos.o newsos3.o i386aout.o bout.o \ - icoff.o amdcoff.o m68kcoff.o i386coff.o m88k-bcs.o ecoff.o elf.o \ - rs6000coff.o - + coff-i960.o coff-a29k.o coff-m68k.o coff-i386.o coff-m88k.o \ + coff-mips.o coff-rs6000.o OPTIONAL_BACKENDS = trad-core.o @@ -58,10 +57,10 @@ BFD_H=$(INCDIR)/bfd.h # C source files that correspond to .o's. CFILES = libbfd.c opncls.c bfd.c archive.c targets.c cache.c archures.c \ - i386coff.c aout64.c aout32.c sunos.c demo64.c icoff.c srec.c \ - oasys.c ieee.c m68kcoff.c amdcoff.c rs6000coff.c \ + coff-i386.c aout64.c aout32.c sunos.c demo64.c coff-i960.c srec.c \ + oasys.c ieee.c coff-m68k.c coff-a29k.c coff-rs6000.c \ format.c section.c core.c syms.c reloc.c init.c \ - m88k-bcs.c ecoff.c trad-core.c newsos3.c i386aout.c bout.c elf.c \ + coff-m88k.c coff-mips.c trad-core.c newsos3.c i386aout.c bout.c elf.c \ cpu-h8300.c cpu-i960.c cpu-sparc.c cpu-m68k.c cpu-m88k.c \ cpu-vax.c cpu-mips.c cpu-a29k.c cpu-i386.c cpu-rs6000.c @@ -249,8 +248,8 @@ archive.o : archive.c $(INCDIR)/bfd.h $(INCDIR)/obstack.h libbfd.h \ targets.o : targets.c $(INCDIR)/bfd.h $(INCDIR)/obstack.h libbfd.h cache.o : cache.c $(INCDIR)/bfd.h $(INCDIR)/obstack.h libbfd.h archures.o : archures.c $(INCDIR)/bfd.h $(INCDIR)/obstack.h -i386coff.o : i386coff.c $(INCDIR)/bfd.h $(INCDIR)/obstack.h libbfd.h \ - $(INCDIR)/i386coff.h $(INCDIR)/internalcoff.h libcoff.h coffcode.h +coff-i386.o : coff-i386.c $(INCDIR)/bfd.h $(INCDIR)/obstack.h libbfd.h \ + $(INCDIR)/coff-i386.h $(INCDIR)/internalcoff.h libcoff.h coffcode.h aout64.o : aout64.c aout32.o : aout32.c aoutx.h $(INCDIR)/bfd.h $(INCDIR)/ansidecl.h \ $(INCDIR)/obstack.h libaout.h libbfd.h $(INCDIR)/aout64.h \ @@ -259,19 +258,19 @@ sunos.o : sunos.c aoutf1.h $(INCDIR)/bfd.h $(INCDIR)/obstack.h \ libaout.h libbfd.h $(INCDIR)/aout64.h $(INCDIR)/stab.gnu.h \ $(INCDIR)/stab.def $(INCDIR)/ar.h demo64.o : demo64.c -icoff.o : icoff.c $(INCDIR)/bfd.h $(INCDIR)/obstack.h libbfd.h \ - $(INCDIR)/intel-coff.h $(INCDIR)/internalcoff.h libcoff.h coffcode.h +coff-i960.o : coff-i960.c $(INCDIR)/bfd.h $(INCDIR)/obstack.h libbfd.h \ + $(INCDIR)/coff-i960.h $(INCDIR)/internalcoff.h libcoff.h coffcode.h srec.o : srec.c $(INCDIR)/bfd.h $(INCDIR)/obstack.h libbfd.h oasys.o : oasys.c $(INCDIR)/bfd.h $(INCDIR)/obstack.h libbfd.h \ $(INCDIR)/oasys.h liboasys.h ieee.o : ieee.c $(INCDIR)/bfd.h $(INCDIR)/obstack.h libbfd.h \ $(INCDIR)/ieee.h libieee.h -m68kcoff.o : m68kcoff.c $(INCDIR)/bfd.h $(INCDIR)/obstack.h libbfd.h \ - $(INCDIR)/m68kcoff.h $(INCDIR)/internalcoff.h libcoff.h coffcode.h -amdcoff.o : amdcoff.c $(INCDIR)/bfd.h $(INCDIR)/obstack.h libbfd.h \ - $(INCDIR)/amdcoff.h $(INCDIR)/internalcoff.h libcoff.h coffcode.h -rs6000coff.o: rs6000coff.c $(INCDIR)/bfd.h $(INCDIR)/obstack.h libbfd.h \ - $(INCDIR)/rs6000coff.h $(INCDIR)/internalcoff.h libcoff.h coffcode.h +coff-m68k.o : coff-m68k.c $(INCDIR)/bfd.h $(INCDIR)/obstack.h libbfd.h \ + $(INCDIR)/coff-m68k.h $(INCDIR)/internalcoff.h libcoff.h coffcode.h +coff-a29k.o : coff-a29k.c $(INCDIR)/bfd.h $(INCDIR)/obstack.h libbfd.h \ + $(INCDIR)/coff-a29k.h $(INCDIR)/internalcoff.h libcoff.h coffcode.h +coff-rs6000.o: coff-rs6000.c $(INCDIR)/bfd.h $(INCDIR)/obstack.h libbfd.h \ + $(INCDIR)/coff-rs6000.h $(INCDIR)/internalcoff.h libcoff.h coffcode.h format.o : format.c $(INCDIR)/bfd.h \ $(INCDIR)/obstack.h libbfd.h section.o : section.c $(INCDIR)/bfd.h \ @@ -282,10 +281,10 @@ syms.o : syms.c $(INCDIR)/bfd.h \ $(INCDIR)/obstack.h libbfd.h reloc.o : reloc.c $(INCDIR)/bfd.h \ $(INCDIR)/obstack.h libbfd.h -m88k-bcs.o : m88k-bcs.c $(INCDIR)/bfd.h $(INCDIR)/obstack.h libbfd.h \ - $(INCDIR)/m88k-bcs.h $(INCDIR)/internalcoff.h libcoff.h coffcode.h -ecoff.o : ecoff.c $(INCDIR)/bfd.h $(INCDIR)/obstack.h libbfd.h \ - $(INCDIR)/ecoff.h $(INCDIR)/internalcoff.h libcoff.h trad-core.h \ +coff-m88k.o : coff-m88k.c $(INCDIR)/bfd.h $(INCDIR)/obstack.h libbfd.h \ + $(INCDIR)/coff-m88k.h $(INCDIR)/internalcoff.h libcoff.h coffcode.h +coff-mips.o : coff-mips.c $(INCDIR)/bfd.h $(INCDIR)/obstack.h libbfd.h \ + $(INCDIR)/coff-mips.h $(INCDIR)/internalcoff.h libcoff.h trad-core.h \ coffcode.h trad-core.o : trad-core.c $(INCDIR)/bfd.h $(INCDIR)/obstack.h \ libbfd.h libaout.h diff --git a/bfd/coff-a29k.c b/bfd/coff-a29k.c index 0dccac4..1cd37b0f 100644 --- a/bfd/coff-a29k.c +++ b/bfd/coff-a29k.c @@ -26,7 +26,7 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ #include "sysdep.h" #include "libbfd.h" #include "obstack.h" -#include "amdcoff.h" +#include "coff-a29k.h" #include "internalcoff.h" #include "libcoff.h" diff --git a/bfd/coff-m88k.c b/bfd/coff-m88k.c index 511dfff..4f523ec 100644 --- a/bfd/coff-m88k.c +++ b/bfd/coff-m88k.c @@ -1,31 +1,32 @@ -/* Copyright (C) 1990, 1991 Free Software Foundation, Inc. +/* Motorola 88000 COFF support ("Binary Compatability Standard") for BFD. + Copyright (C) 1990-1991 Free Software Foundation, Inc. + Written by Cygnus Support. -This file is part of BFD, the Binary File Diddler. +This file is part of BFD, the Binary File Descriptor library. -BFD is free software; you can redistribute it and/or modify +This program 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 1, or (at your option) -any later version. +the Free Software Foundation; either version 2 of the License, or +(at your option) any later version. -BFD is distributed in the hope that it will be useful, +This program 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 BFD; see the file COPYING. If not, write to -the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */ - +along with this program; if not, write to the Free Software +Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ /* $Id$ */ -#define M88 1 -#include <ansidecl.h> -#include <sysdep.h> +#define M88 1 /* Customize various include files */ #include "bfd.h" +#include "sysdep.h" #include "libbfd.h" #include "obstack.h" -#include "m88k-bcs.h" +#include "coff-m88k.h" +#include "internalcoff.h" #include "libcoff.h" /* Provided the symbol, returns the value reffed */ @@ -47,7 +48,7 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */ -static bfd_reloc_status_enum_type +static bfd_reloc_status_type DEFUN(howto_hvrt16,(abfd, reloc_entry, symbol_in, data, ignore_input_section), bfd *abfd AND arelent *reloc_entry AND @@ -92,8 +93,8 @@ static reloc_howto_type howto_table[] = bfd_target m88k_bcs_vec = { - "m88kbcs", /* name */ - bfd_target_coff_flavour_enum, + "m88kbcs", /* name */ + bfd_target_coff_flavour, true, /* data byte order is big */ true, /* header byte order is big */ @@ -104,17 +105,17 @@ bfd_target m88k_bcs_vec = (SEC_HAS_CONTENTS | SEC_ALLOC | SEC_LOAD | SEC_RELOC), /* section flags */ '/', /* ar_pad_char */ 15, /* ar_max_namelen */ + 3, /* default alignment power */ + _do_getb64, _do_putb64, _do_getb32, _do_putb32, _do_getb16, _do_putb16, /* data */ + _do_getb64, _do_putb64, _do_getb32, _do_putb32, _do_getb16, _do_putb16, /* hdrs */ -_do_getb64, _do_putb64, _do_getb32, _do_putb32, _do_getb16, _do_putb16, /* data */ -_do_getb64, _do_putb64, _do_getb32, _do_putb32, _do_getb16, _do_putb16, /* hdrs */ - - {_bfd_dummy_target, coff_object_p, /* bfd_check_format */ - bfd_generic_archive_p, _bfd_dummy_target}, - {bfd_false, coff_mkobject, _bfd_generic_mkarchive, /* bfd_set_format */ - bfd_false}, - {bfd_false, coff_write_object_contents, /* bfd_write_contents */ - _bfd_write_archive_contents, bfd_false}, + {_bfd_dummy_target, coff_object_p, /* bfd_check_format */ + bfd_generic_archive_p, _bfd_dummy_target}, + {bfd_false, coff_mkobject, _bfd_generic_mkarchive, /* bfd_set_format */ + bfd_false}, + {bfd_false, coff_write_object_contents, /* bfd_write_contents */ + _bfd_write_archive_contents, bfd_false}, JUMP_TABLE(coff), -COFF_SWAP_TABLE + COFF_SWAP_TABLE }; diff --git a/bfd/coff-rs6000.c b/bfd/coff-rs6000.c index 5f76471..1787bfa 100644 --- a/bfd/coff-rs6000.c +++ b/bfd/coff-rs6000.c @@ -26,13 +26,12 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ /* Internalcoff.h and coffcode.h modify themselves based on this flag. */ #define RS6000COFF_C 1 -#include <ansidecl.h> -#include <sysdep.h> #include "bfd.h" +#include "sysdep.h" #include "libbfd.h" #include "obstack.h" #include "internalcoff.h" -#include "rs6000coff.h" +#include "coff-rs6000.h" #include "libcoff.h" /* The main body of code is in coffcode.h. */ @@ -58,7 +57,7 @@ static bfd_target *rs6000coff_real_object_p (); bfd_target rs6000coff_vec = { - "coff_rs6000", /* name */ + "coff-rs6000", /* name */ bfd_target_coff_flavour, true, /* data byte order is big */ true, /* header byte order is big */ @@ -497,4 +496,3 @@ rs6000coff_get_section_contents (abfd, section, location, offset, count) } #endif /* if 0 - for CORE */ - |