From: Stan Shebs Date: Fri, 29 Oct 1993 02:01:43 +0000 (+0000) Subject: A number of minor Lynx-related changes, plus basic Sparc Lynx support. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=c9368a3bc3af36a7f53db7137d727ae6a124fde3;p=binutils-gdb.git A number of minor Lynx-related changes, plus basic Sparc Lynx support. --- diff --git a/bfd/ChangeLog b/bfd/ChangeLog index 78c1b024e0b..bd41ba84922 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,28 @@ +Thu Oct 28 16:33:26 1993 Stan Shebs (shebs@rtl.cygnus.com) + + LynxOS and Sparc LynxOS changes: + * config.bfd: Recognize sparc-*-lynxos*. + * configure.host: Recognize sparc-*-lynxos*. + * configure.in: Recognize Sparc Lynx vectors. + * targets.c (sparclynx_aout_vec): Declare. + (sparclynx_coff_vec): Declare. + (target_vector): Add them. + * cf-i386lynx.c: New file, renamed from i386lynx-cf.c. + * cf-m68klynx.c: New file, renamed from m68klynx-cf.c. + * cf-sparclynx.c: New file, support for coff in Sparc LynxOS. + * coff-sparc.c: New file, basic Sparc coff support. + * sparclynx.c: New file, support for a.out in Sparc LynxOS. + * Makefile.in: Change filenames appropriately, add Sparc rules. + * coffcode.h (coff_set_arch_mach_hook): Recognize Sparc magic + number. + (coff_set_flags): Use LynxOS magic number for i386, m68k, and + Sparc LynxOS, set Sparc magic number for Sparcs. + * config/m68k-lynx.mt (SELECT_VECS): Remove redundant vector. + * config/sparc-lynx.mt: New file. + * hosts/i386lynx.h: Cosmetic improvements. + * hosts/m68klynx.h: Add ifdefs, #define of cfree. + * hosts/sparclynx.h: New file. + Thu Oct 28 16:23:40 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com) gcc -Wall lint: diff --git a/bfd/cf-m68klynx.c b/bfd/cf-m68klynx.c new file mode 100644 index 00000000000..be52e41777d --- /dev/null +++ b/bfd/cf-m68klynx.c @@ -0,0 +1,30 @@ +/* BFD back-end for Motorola M68K COFF LynxOS files. + Copyright 1993 Free Software Foundation, Inc. + Written by Cygnus Support. + +This file is part of BFD, the Binary File Descriptor library. + +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 2 of the License, or +(at your option) any later version. + +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 this program; if not, write to the Free Software +Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ + +#define TARGET_SYM m68klynx_coff_vec +#define TARGET_NAME "coff-m68k-lynx" + +#define LYNXOS + +#define COFF_LONG_FILENAMES + +#define ONLY_DECLARE_RELOCS + +#include "coff-m68k.c" diff --git a/bfd/cf-sparclynx.c b/bfd/cf-sparclynx.c new file mode 100644 index 00000000000..697b67bae72 --- /dev/null +++ b/bfd/cf-sparclynx.c @@ -0,0 +1,24 @@ +/* BFD back-end for Sparc COFF LynxOS files. + Copyright 1993 Free Software Foundation, Inc. + Written by Cygnus Support. + +This file is part of BFD, the Binary File Descriptor library. + +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 2 of the License, or +(at your option) any later version. + +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 this program; if not, write to the Free Software +Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ + +#define TARGET_SYM sparclynx_coff_vec +#define TARGET_NAME "coff-sparc-lynx" + +#include "coff-sparc.c" diff --git a/bfd/configure.in b/bfd/configure.in index 6a0850016f6..b3b0a74030d 100644 --- a/bfd/configure.in +++ b/bfd/configure.in @@ -177,7 +177,7 @@ do i386coff_vec) tb="$tb coff-i386.o" ;; i386linux_vec) tb="$tb i386linux.o aout32.o stab-syms.o" ;; i386lynx_aout_vec) tb="$tb i386lynx.o lynx-core.o aout32.o stab-syms.o" ;; - i386lynx_coff_vec) tb="$tb i386lynx-cf.o lynx-core.o stab-syms.o" ;; + i386lynx_coff_vec) tb="$tb cf-i386lynx.o lynx-core.o stab-syms.o" ;; i386mach3_vec) tb="$tb i386mach3.o" ;; icoff_big_vec) tb="$tb coff-i960.o" ;; icoff_little_vec) tb="$tb coff-i960.o" ;; @@ -185,7 +185,7 @@ do m68kcoff_vec) tb="$tb coff-m68k.o" ;; m68kcoffun_vec) tb="$tb coff-u68k.o coff-m68k.o" ;; m68klynx_aout_vec) tb="$tb m68klynx.o lynx-core.o aout32.o stab-syms.o" ;; - m68klynx_coff_vec) tb="$tb m68klynx-cf.o coff-m68k.o lynx-core.o stab-syms.o" ;; + m68klynx_coff_vec) tb="$tb cf-m68klynx.o coff-m68k.o lynx-core.o stab-syms.o" ;; m88kbcs_vec) tb="$tb coff-m88k.o" ;; newsos3_vec) tb="$tb newsos3.o aout32.o stab-syms.o" ;; nlm32_big_generic_vec) tb="$tb nlm32-gen.o nlm32.o nlm.o" ;; @@ -197,6 +197,8 @@ do target64=true ;; rs6000coff_vec) tb="$tb coff-rs6000.o" ;; shcoff_vec) tb="$tb coff-sh.o reloc16.o" ;; + sparclynx_aout_vec) tb="$tb sparclynx.o lynx-core.o aout32.o stab-syms.o" ;; + sparclynx_coff_vec) tb="$tb cf-sparclynx.o lynx-core.o stab-syms.o" ;; sunos_big_vec) tb="$tb sunos.o aout32.o stab-syms.o" ;; tekhex_vec) tb="$tb tekhex.o" ;; we32kcoff_vec) tb="$tb coff-we32k.o" ;; diff --git a/bfd/i386lynx-cf.c b/bfd/i386lynx-cf.c deleted file mode 100644 index 541f59e54f6..00000000000 --- a/bfd/i386lynx-cf.c +++ /dev/null @@ -1,24 +0,0 @@ -/* BFD back-end for Intel 386 COFF LynxOS files. - Copyright 1993 Free Software Foundation, Inc. - Written by Cygnus Support. - -This file is part of BFD, the Binary File Descriptor library. - -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 2 of the License, or -(at your option) any later version. - -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 this program; if not, write to the Free Software -Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ - -#define TARGET_SYM i386lynx_coff_vec -#define TARGET_NAME "coff-i386-lynx" - -#include "coff-i386.c" diff --git a/bfd/m68klynx-cf.c b/bfd/m68klynx-cf.c deleted file mode 100644 index 7cd4ae8b240..00000000000 --- a/bfd/m68klynx-cf.c +++ /dev/null @@ -1,25 +0,0 @@ -/* BFD back-end for Motorola M68K COFF LynxOS files. - Copyright 1993 Free Software Foundation, Inc. - Written by Cygnus Support. - -This file is part of BFD, the Binary File Descriptor library. - -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 2 of the License, or -(at your option) any later version. - -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 this program; if not, write to the Free Software -Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ - -#define TARGET_SYM m68klynx_coff_vec -#define TARGET_NAME "coff-m68k-lynx" - -#define ONLY_DECLARE_RELOCS -#include "coff-m68k.c"