diff options
Diffstat (limited to 'gas')
-rw-r--r-- | gas/ChangeLog | 15 | ||||
-rw-r--r-- | gas/Makefile.am | 3 | ||||
-rw-r--r-- | gas/Makefile.in | 3 | ||||
-rw-r--r-- | gas/config.in | 3 | ||||
-rw-r--r-- | gas/config/obj-elf.c | 97 | ||||
-rw-r--r-- | gas/config/tc-i386.h | 5 | ||||
-rw-r--r-- | gas/config/te-dynix.h | 26 | ||||
-rw-r--r-- | gas/config/te-i386aix.h | 38 | ||||
-rw-r--r-- | gas/config/te-mach.h | 21 | ||||
-rwxr-xr-x | gas/configure | 8 | ||||
-rw-r--r-- | gas/configure.ac | 6 | ||||
-rw-r--r-- | gas/configure.tgt | 27 | ||||
-rw-r--r-- | gas/po/POTFILES.in | 3 |
13 files changed, 16 insertions, 239 deletions
diff --git a/gas/ChangeLog b/gas/ChangeLog index 1fb5c1f..8cc56b4 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,5 +1,20 @@ 2018-04-18 Alan Modra <amodra@gmail.com> + * Makefile.am: Remove support for assorted i386 aout and coff targets. + * config/obj-elf.c: Likewise. + * config/tc-i386.h: Likewise. + * configure.ac: Likewise. + * configure.tgt: Likewise. + * config/te-dynix.h: Delete. + * config/te-i386aix.h: Delete. + * config/te-mach.h: Delete. + * Makefile.in: Regenerate. + * config.in: Regenerate. + * configure: Regenerate. + * po/POTFILES.in: Regenerate. + +2018-04-18 Alan Modra <amodra@gmail.com> + * configure.tgt: Remove *-*-bsd* entry. 2018-04-17 Andrew Sadek <andrew.sadek.se@gmail.com> diff --git a/gas/Makefile.am b/gas/Makefile.am index a50fd69..fa0f65c 100644 --- a/gas/Makefile.am +++ b/gas/Makefile.am @@ -306,7 +306,6 @@ TARG_ENV_HFILES = \ config/te-armfbsdeabi.h \ config/te-armfbsdvfp.h \ config/te-armlinuxeabi.h \ - config/te-dynix.h \ config/te-freebsd.h \ config/te-generic.h \ config/te-gnu.h \ @@ -314,11 +313,9 @@ TARG_ENV_HFILES = \ config/te-hppa.h \ config/te-hppa64.h \ config/te-hppalinux64.h \ - config/te-i386aix.h \ config/te-ia64aix.h \ config/te-interix.h \ config/te-lynx.h \ - config/te-mach.h \ config/te-macos.h \ config/te-nbsd.h \ config/te-nbsd532.h \ diff --git a/gas/Makefile.in b/gas/Makefile.in index a9847fa..873e917 100644 --- a/gas/Makefile.in +++ b/gas/Makefile.in @@ -602,7 +602,6 @@ TARG_ENV_HFILES = \ config/te-armfbsdeabi.h \ config/te-armfbsdvfp.h \ config/te-armlinuxeabi.h \ - config/te-dynix.h \ config/te-freebsd.h \ config/te-generic.h \ config/te-gnu.h \ @@ -610,11 +609,9 @@ TARG_ENV_HFILES = \ config/te-hppa.h \ config/te-hppa64.h \ config/te-hppalinux64.h \ - config/te-i386aix.h \ config/te-ia64aix.h \ config/te-interix.h \ config/te-lynx.h \ - config/te-mach.h \ config/te-macos.h \ config/te-nbsd.h \ config/te-nbsd532.h \ diff --git a/gas/config.in b/gas/config.in index fff48d9..fcadc4a 100644 --- a/gas/config.in +++ b/gas/config.in @@ -268,9 +268,6 @@ /* Define to the version of this package. */ #undef PACKAGE_VERSION -/* Define if defaulting to ELF on SCO 5. */ -#undef SCO_ELF - /* If using the C implementation of alloca, define if you know the direction of stack growth for your system; otherwise it will be automatically deduced at runtime. diff --git a/gas/config/obj-elf.c b/gas/config/obj-elf.c index 5870447..3a7e39e 100644 --- a/gas/config/obj-elf.c +++ b/gas/config/obj-elf.c @@ -2647,103 +2647,6 @@ elf_frob_file_after_relocs (void) #endif /* NEED_ECOFF_DEBUG */ } -#ifdef SCO_ELF - -/* Heavily plagiarized from obj_elf_version. The idea is to emit the - SCO specific identifier in the .notes section to satisfy the SCO - linker. - - This looks more complicated than it really is. As opposed to the - "obvious" solution, this should handle the cross dev cases - correctly. (i.e, hosting on a 64 bit big endian processor, but - generating SCO Elf code) Efficiency isn't a concern, as there - should be exactly one of these sections per object module. - - SCO OpenServer 5 identifies it's ELF modules with a standard ELF - .note section. - - int_32 namesz = 4 ; Name size - int_32 descsz = 12 ; Descriptive information - int_32 type = 1 ; - char name[4] = "SCO" ; Originator name ALWAYS SCO + NULL - int_32 version = (major ver # << 16) | version of tools ; - int_32 source = (tool_id << 16 ) | 1 ; - int_32 info = 0 ; These are set by the SCO tools, but we - don't know enough about the source - environment to set them. SCO ld currently - ignores them, and recommends we set them - to zero. */ - -#define SCO_MAJOR_VERSION 0x1 -#define SCO_MINOR_VERSION 0x1 - -void -sco_id (void) -{ - - char *name; - unsigned int c; - char ch; - char *p; - asection *seg = now_seg; - subsegT subseg = now_subseg; - Elf_Internal_Note i_note; - Elf_External_Note e_note; - asection *note_secp = NULL; - int i, len; - - /* create the .note section */ - - note_secp = subseg_new (".note", 0); - bfd_set_section_flags (stdoutput, - note_secp, - SEC_HAS_CONTENTS | SEC_READONLY); - - /* process the version string */ - - i_note.namesz = 4; - i_note.descsz = 12; /* 12 descriptive bytes */ - i_note.type = NT_VERSION; /* Contains a version string */ - - p = frag_more (sizeof (i_note.namesz)); - md_number_to_chars (p, i_note.namesz, 4); - - p = frag_more (sizeof (i_note.descsz)); - md_number_to_chars (p, i_note.descsz, 4); - - p = frag_more (sizeof (i_note.type)); - md_number_to_chars (p, i_note.type, 4); - - p = frag_more (4); - strcpy (p, "SCO"); - - /* Note: this is the version number of the ELF we're representing */ - p = frag_more (4); - md_number_to_chars (p, (SCO_MAJOR_VERSION << 16) | (SCO_MINOR_VERSION), 4); - - /* Here, we pick a magic number for ourselves (yes, I "registered" - it with SCO. The bottom bit shows that we are compat with the - SCO ABI. */ - p = frag_more (4); - md_number_to_chars (p, 0x4c520000 | 0x0001, 4); - - /* If we knew (or cared) what the source language options were, we'd - fill them in here. SCO has given us permission to ignore these - and just set them to zero. */ - p = frag_more (4); - md_number_to_chars (p, 0x0000, 4); - - frag_align (2, 0, 0); - - /* We probably can't restore the current segment, for there likely - isn't one yet... */ - if (seg && subseg) - subseg_set (seg, subseg); - -} - -#endif /* SCO_ELF */ - static void elf_generate_asm_lineno (void) { diff --git a/gas/config/tc-i386.h b/gas/config/tc-i386.h index c7c53be..8330479 100644 --- a/gas/config/tc-i386.h +++ b/gas/config/tc-i386.h @@ -266,11 +266,6 @@ struct i386_tc_frag_data } \ while (0) -#ifdef SCO_ELF -#define tc_init_after_args() sco_id () -extern void sco_id (void); -#endif - #define WORKING_DOT_WORD 1 /* How to generate NOPs for .nop direct directive. */ diff --git a/gas/config/te-dynix.h b/gas/config/te-dynix.h deleted file mode 100644 index a695dfa..0000000 --- a/gas/config/te-dynix.h +++ /dev/null @@ -1,26 +0,0 @@ -/* Copyright (C) 2007-2018 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 3, - 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, 51 Franklin Street - Fifth Floor, Boston, MA - 02110-1301, USA. */ - -/* This is for i386-sequent-bsd. The assembler probably does not - actually work, as the support in BFD is not complete as of this - writing. See bfd/i386-dynix.c. */ - -#define TE_DYNIX 1 - -#include "obj-format.h" diff --git a/gas/config/te-i386aix.h b/gas/config/te-i386aix.h deleted file mode 100644 index 790b0bc..0000000 --- a/gas/config/te-i386aix.h +++ /dev/null @@ -1,38 +0,0 @@ -/* Copyright (C) 2007-2018 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 3, - 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, 51 Franklin Street - Fifth Floor, Boston, MA - 02110-1301, USA. */ - -/* This file is te-i386aix.h and is built from pieces of code from - Minh Tran-Le <TRANLE@INTELLICORP.COM> by rich@cygnus.com. */ - -#define TE_I386AIX 1 - -#include "obj-format.h" - -/* Define KEEP_RELOC_INFO so that the strip reloc info flag F_RELFLG is - not used in the filehdr for COFF output. */ -#define KEEP_RELOC_INFO - -/* - * Local Variables: - * comment-column: 0 - * fill-column: 79 - * End: - */ - -/* end of te-i386aix.h */ diff --git a/gas/config/te-mach.h b/gas/config/te-mach.h deleted file mode 100644 index 1ca6800..0000000 --- a/gas/config/te-mach.h +++ /dev/null @@ -1,21 +0,0 @@ -/* Copyright (C) 2007-2018 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 3, - 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, 51 Franklin Street - Fifth Floor, Boston, MA - 02110-1301, USA. */ - -#define TE_Mach -#include "obj-format.h" diff --git a/gas/configure b/gas/configure index cd48cee..a45e531 100755 --- a/gas/configure +++ b/gas/configure @@ -12223,14 +12223,6 @@ _ACEOF generic_target=${cpu_type}-${target_vendor}-${target_os} case ${generic_target} in - i386-*-sco3.2v5*) - if test ${this_target} = $target; then - -$as_echo "#define SCO_ELF 1" >>confdefs.h - - fi - ;; - i386-*-msdosdjgpp* \ | i386-*-go32* \ | i386-go32-rtems*) diff --git a/gas/configure.ac b/gas/configure.ac index 1e9bc35..4a84f16 100644 --- a/gas/configure.ac +++ b/gas/configure.ac @@ -190,12 +190,6 @@ for this_target in $target $canon_targets ; do generic_target=${cpu_type}-${target_vendor}-${target_os} case ${generic_target} in - i386-*-sco3.2v5*) - if test ${this_target} = $target; then - AC_DEFINE(SCO_ELF, 1, [Define if defaulting to ELF on SCO 5.]) - fi - ;; - i386-*-msdosdjgpp* \ | i386-*-go32* \ | i386-go32-rtems*) diff --git a/gas/configure.tgt b/gas/configure.tgt index 93e7994..c43a442 100644 --- a/gas/configure.tgt +++ b/gas/configure.tgt @@ -212,11 +212,8 @@ case ${generic_target} in h8300-*-elf) fmt=elf ;; h8300-*-linux*) fmt=elf em=linux ;; - i386-ibm-aix*) fmt=coff em=i386aix ;; - i386-sequent-bsd*) fmt=aout em=dynix ;; i386-*-beospe*) fmt=coff em=pe ;; i386-*-beos*) fmt=elf ;; - i386-*-coff) fmt=coff ;; i386-*-elfiamcu) fmt=elf arch=iamcu ;; i386-*-elf*) fmt=elf ;; i386-*-fuchsia*) fmt=elf ;; @@ -226,45 +223,23 @@ case ${generic_target} in case ${cpu} in x86_64*) arch=x86_64:32 ;; esac ;; - i386-*-netbsd0.8) fmt=aout em=386bsd ;; i386-*-netbsdpe*) fmt=coff em=pe ;; i386-*-netbsd*-gnu* | \ i386-*-knetbsd*-gnu | \ - i386-*-netbsdelf*) fmt=elf em=nbsd ;; - i386-*-netbsd*) - case ${cpu} in - x86_64) fmt=elf em=nbsd ;; - *) fmt=aout em=nbsd ;; - esac ;; - i386-*-openbsd[0-2].* | \ - i386-*-openbsd3.[0-2]) fmt=aout em=nbsd ;; + i386-*-netbsd* | \ i386-*-openbsd*) fmt=elf em=nbsd ;; - i386-*-linux*aout*) fmt=aout em=linux ;; - i386-*-linux*oldld) fmt=aout em=linux ;; - i386-*-linux*coff*) fmt=coff em=linux ;; i386-*-linux-*) fmt=elf em=linux case ${cpu}-${os} in x86_64*-linux-gnux32) arch=x86_64:32 ;; esac ;; i386-*-lynxos*) fmt=elf em=lynx ;; i386-*-redox*) fmt=elf ;; - i386-*-sysv[45]*) fmt=elf ;; i386-*-solaris*) fmt=elf em=solaris ;; - i386-*-freebsdaout*) fmt=aout em=386bsd ;; - i386-*-freebsd[12].*) fmt=aout em=386bsd ;; - i386-*-freebsd[12]) fmt=aout em=386bsd ;; i386-*-freebsd* \ | i386-*-kfreebsd*-gnu) fmt=elf em=freebsd ;; - i386-*-sysv*) fmt=coff ;; - i386-*-sco3.2v5*coff) fmt=coff ;; - i386-*-isc*) fmt=coff ;; - i386-*-sco3.2v5*) fmt=elf ;; - i386-*-sco3.2*) fmt=coff ;; - i386-*-vsta) fmt=aout ;; i386-*-msdosdjgpp* \ | i386-*-go32*) fmt=coff em=go32 ;; i386-*-gnu*) fmt=elf em=gnu ;; - i386-*-mach*) fmt=aout em=mach ;; i386-*-msdos*) fmt=aout ;; i386-*-moss*) fmt=elf ;; i386-*-pe) fmt=coff em=pe ;; diff --git a/gas/po/POTFILES.in b/gas/po/POTFILES.in index 91b1d4c..1d0e6d9 100644 --- a/gas/po/POTFILES.in +++ b/gas/po/POTFILES.in @@ -181,7 +181,6 @@ config/te-armeabi.h config/te-armfbsdeabi.h config/te-armfbsdvfp.h config/te-armlinuxeabi.h -config/te-dynix.h config/te-freebsd.h config/te-generic.h config/te-gnu.h @@ -189,11 +188,9 @@ config/te-go32.h config/te-hppa.h config/te-hppa64.h config/te-hppalinux64.h -config/te-i386aix.h config/te-ia64aix.h config/te-interix.h config/te-lynx.h -config/te-mach.h config/te-macos.h config/te-nbsd.h config/te-nbsd532.h |