From ddb000396c9246649e02669e0bd6ad3949973e5a Mon Sep 17 00:00:00 2001 From: Alan Modra Date: Mon, 16 Apr 2018 20:29:05 +0930 Subject: Remove arm-epoc-pe support bfd/ * Makefile.am: Remove arm-epoc-pe support. * coff-arm.c: Likewise. * config.bfd: Likewise. * configure.ac: Likewise. * targets.c: Likewise. * epoc-pe-arm.c: Delete. * epoc-pei-arm.c: Delete. * Makefile.in: Regenerate. * configure: Regenerate. * po/SRC-POTFILES.in: Regenerate. binutils/ * configure.ac: Remove arm-epoc-pe support. * dlltool.c: Likewise. * configure: Regenerate. gas/ * Makefile.am: Remove arm-epoc-pe support. * config/tc-arm.h: Likewise. * configure.tgt: Likewise. * testsuite/gas/all/gas.exp: Likewise. * testsuite/gas/arm/local_label_coff.d: Likewise. * testsuite/gas/arm/undefined.d: Likewise. * testsuite/gas/arm/undefined_coff.d: Likewise. * config/te-epoc-pe.h: Delete. * Makefile.in: Regenerate. * po/POTFILES.in: Regenerate. ld/ * Makefile.am: Remove arm-epoc-pe support. * configure.tgt: Likewise. * emultempl/pe.em: Likewise. * pe-dll.c: Likewise. * testsuite/ld-scripts/fill.d: Likewise. * testsuite/ld-scripts/fill16.d: Likewise. * emulparams/arm_epoc_pe.sh: Delete. * scripttempl/epocpe.sc: Delete. * Makefile.in: Regenerate. * po/BLD-POTFILES.in: Regenerate. --- bfd/ChangeLog | 13 +++ bfd/Makefile.am | 4 - bfd/Makefile.in | 6 -- bfd/coff-arm.c | 5 +- bfd/config.bfd | 8 +- bfd/configure | 4 - bfd/configure.ac | 4 - bfd/epoc-pe-arm.c | 38 ------- bfd/epoc-pei-arm.c | 31 ------ bfd/po/SRC-POTFILES.in | 2 - bfd/targets.c | 8 -- binutils/ChangeLog | 6 ++ binutils/configure | 9 -- binutils/configure.ac | 9 -- binutils/dlltool.c | 21 +--- gas/ChangeLog | 13 +++ gas/Makefile.am | 1 - gas/Makefile.in | 1 - gas/config/tc-arm.h | 4 +- gas/config/te-epoc-pe.h | 27 ----- gas/configure.tgt | 1 - gas/po/POTFILES.in | 1 - gas/testsuite/gas/all/gas.exp | 1 - gas/testsuite/gas/arm/local_label_coff.d | 2 +- gas/testsuite/gas/arm/undefined.d | 2 +- gas/testsuite/gas/arm/undefined_coff.d | 2 +- ld/ChangeLog | 13 +++ ld/Makefile.am | 4 - ld/Makefile.in | 5 - ld/configure.tgt | 1 - ld/emulparams/arm_epoc_pe.sh | 9 -- ld/emultempl/pe.em | 16 +-- ld/pe-dll.c | 14 +-- ld/po/BLD-POTFILES.in | 1 - ld/scripttempl/epocpe.sc | 164 ------------------------------- ld/testsuite/ld-scripts/fill.d | 2 - ld/testsuite/ld-scripts/fill16.d | 2 - 37 files changed, 60 insertions(+), 394 deletions(-) delete mode 100644 bfd/epoc-pe-arm.c delete mode 100644 bfd/epoc-pei-arm.c delete mode 100644 gas/config/te-epoc-pe.h delete mode 100644 ld/emulparams/arm_epoc_pe.sh delete mode 100644 ld/scripttempl/epocpe.sc diff --git a/bfd/ChangeLog b/bfd/ChangeLog index efda071..9f81866 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,5 +1,18 @@ 2018-04-16 Alan Modra + * Makefile.am: Remove arm-epoc-pe support. + * coff-arm.c: Likewise. + * config.bfd: Likewise. + * configure.ac: Likewise. + * targets.c: Likewise. + * epoc-pe-arm.c: Delete. + * epoc-pei-arm.c: Delete. + * Makefile.in: Regenerate. + * configure: Regenerate. + * po/SRC-POTFILES.in: Regenerate. + +2018-04-16 Alan Modra + * Makefile.am: Remove sparc-aout and sparc-coff support. * config.bfd: Likewise. * configure.ac: Likewise. diff --git a/bfd/Makefile.am b/bfd/Makefile.am index 9ba5db0..d964055 100644 --- a/bfd/Makefile.am +++ b/bfd/Makefile.am @@ -357,8 +357,6 @@ BFD32_BACKENDS = \ elflink.lo \ elfxx-sparc.lo \ elfxx-tilegx.lo \ - epoc-pe-arm.lo \ - epoc-pei-arm.lo \ i386aout.lo \ i386bsd.lo \ i386dynix.lo \ @@ -508,8 +506,6 @@ BFD32_BACKENDS_CFILES = \ elflink.c \ elfxx-sparc.c \ elfxx-tilegx.c \ - epoc-pe-arm.c \ - epoc-pei-arm.c \ i386aout.c \ i386bsd.c \ i386dynix.c \ diff --git a/bfd/Makefile.in b/bfd/Makefile.in index 37d02c3..5176a32 100644 --- a/bfd/Makefile.in +++ b/bfd/Makefile.in @@ -691,8 +691,6 @@ BFD32_BACKENDS = \ elflink.lo \ elfxx-sparc.lo \ elfxx-tilegx.lo \ - epoc-pe-arm.lo \ - epoc-pei-arm.lo \ i386aout.lo \ i386bsd.lo \ i386dynix.lo \ @@ -842,8 +840,6 @@ BFD32_BACKENDS_CFILES = \ elflink.c \ elfxx-sparc.c \ elfxx-tilegx.c \ - epoc-pe-arm.c \ - epoc-pei-arm.c \ i386aout.c \ i386bsd.c \ i386dynix.c \ @@ -1431,8 +1427,6 @@ distclean-compile: @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/elfxx-sparc.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/elfxx-tilegx.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/elfxx-x86.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/epoc-pe-arm.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/epoc-pei-arm.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/format.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/hash.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/hpux-core.Plo@am__quote@ diff --git a/bfd/coff-arm.c b/bfd/coff-arm.c index ca107b1..f0e3e30 100644 --- a/bfd/coff-arm.c +++ b/bfd/coff-arm.c @@ -1274,9 +1274,8 @@ coff_arm_relocate_section (bfd *output_bfd, continue; /* FIXME - it is not clear which targets need this next test and which do not. It is known that it is needed for the - VxWorks and EPOC-PE targets, but it is also known that it - was suppressed for other ARM targets. This ought to be - sorted out one day. */ + VxWorks targets but it is also known that it was suppressed + for other ARM targets. This ought to be sorted out one day. */ #ifdef ARM_COFF_BUGFIX /* We must not ignore the symbol value. If the symbol is within the same section, the relocation should have already diff --git a/bfd/config.bfd b/bfd/config.bfd index 23800c5..6f48ae1 100644 --- a/bfd/config.bfd +++ b/bfd/config.bfd @@ -57,7 +57,6 @@ case $targ in mips*-*-irix5* | mips*-*-irix6*) # Not obsolete ;; - arm-epoc-pe* | \ arm*-*-aout | \ arm*-*-coff | \ i[3-7]86-*-sco3.2v5*coff | \ @@ -108,6 +107,7 @@ case $targ in *-*-rtemscoff* | \ a29k-* | \ arm-*-oabi | \ + arm-epoc-pe* | \ h8300*-*-coff | \ h8500*-*-coff | \ hppa*-*-rtems* | \ @@ -383,12 +383,6 @@ case "${targ}" in arm-*-riscix*) targ_defvec=arm_aout_riscix_vec ;; - arm-epoc-pe*) - targ_defvec=arm_pe_epoc_le_vec - targ_selvecs="arm_pe_epoc_le_vec arm_pe_epoc_be_vec arm_pei_epoc_le_vec arm_pei_epoc_be_vec" - targ_underscore=no - targ_cflags=-DARM_COFF_BUGFIX - ;; arm-wince-pe | arm-*-wince | arm*-*-mingw32ce* | arm*-*-cegcc*) targ_defvec=arm_pe_wince_le_vec targ_selvecs="arm_pe_wince_le_vec arm_pe_wince_be_vec arm_pei_wince_le_vec arm_pei_wince_be_vec" diff --git a/bfd/configure b/bfd/configure index dfe6ea1..1e1c26b 100755 --- a/bfd/configure +++ b/bfd/configure @@ -14361,14 +14361,10 @@ do arm_elf32_vxworks_le_vec) tb="$tb elf32-arm.lo elf32.lo elf-nacl.lo elf-vxworks.lo $elf" ;; arm_pe_be_vec) tb="$tb pe-arm.lo peigen.lo $coff" ;; arm_pe_le_vec) tb="$tb pe-arm.lo peigen.lo $coff" ;; - arm_pe_epoc_be_vec) tb="$tb epoc-pe-arm.lo peigen.lo $coff" ;; - arm_pe_epoc_le_vec) tb="$tb epoc-pe-arm.lo peigen.lo $coff" ;; arm_pe_wince_be_vec) tb="$tb pe-arm-wince.lo pe-arm.lo peigen.lo $coff" ;; arm_pe_wince_le_vec) tb="$tb pe-arm-wince.lo pe-arm.lo peigen.lo $coff" ;; arm_pei_be_vec) tb="$tb pei-arm.lo peigen.lo $coff" ;; arm_pei_le_vec) tb="$tb pei-arm.lo peigen.lo $coff" ;; - arm_pei_epoc_be_vec) tb="$tb epoc-pei-arm.lo peigen.lo $coff" ;; - arm_pei_epoc_le_vec) tb="$tb epoc-pei-arm.lo peigen.lo $coff" ;; arm_pei_wince_be_vec) tb="$tb pei-arm-wince.lo pei-arm.lo peigen.lo $coff" ;; arm_pei_wince_le_vec) tb="$tb pei-arm-wince.lo pei-arm.lo peigen.lo $coff" ;; arm_mach_o_vec) tb="$tb mach-o-arm.lo" ;; diff --git a/bfd/configure.ac b/bfd/configure.ac index dc7f84f..49252c7 100644 --- a/bfd/configure.ac +++ b/bfd/configure.ac @@ -438,14 +438,10 @@ do arm_elf32_vxworks_le_vec) tb="$tb elf32-arm.lo elf32.lo elf-nacl.lo elf-vxworks.lo $elf" ;; arm_pe_be_vec) tb="$tb pe-arm.lo peigen.lo $coff" ;; arm_pe_le_vec) tb="$tb pe-arm.lo peigen.lo $coff" ;; - arm_pe_epoc_be_vec) tb="$tb epoc-pe-arm.lo peigen.lo $coff" ;; - arm_pe_epoc_le_vec) tb="$tb epoc-pe-arm.lo peigen.lo $coff" ;; arm_pe_wince_be_vec) tb="$tb pe-arm-wince.lo pe-arm.lo peigen.lo $coff" ;; arm_pe_wince_le_vec) tb="$tb pe-arm-wince.lo pe-arm.lo peigen.lo $coff" ;; arm_pei_be_vec) tb="$tb pei-arm.lo peigen.lo $coff" ;; arm_pei_le_vec) tb="$tb pei-arm.lo peigen.lo $coff" ;; - arm_pei_epoc_be_vec) tb="$tb epoc-pei-arm.lo peigen.lo $coff" ;; - arm_pei_epoc_le_vec) tb="$tb epoc-pei-arm.lo peigen.lo $coff" ;; arm_pei_wince_be_vec) tb="$tb pei-arm-wince.lo pei-arm.lo peigen.lo $coff" ;; arm_pei_wince_le_vec) tb="$tb pei-arm-wince.lo pei-arm.lo peigen.lo $coff" ;; arm_mach_o_vec) tb="$tb mach-o-arm.lo" ;; diff --git a/bfd/epoc-pe-arm.c b/bfd/epoc-pe-arm.c deleted file mode 100644 index 60ff8a1..0000000 --- a/bfd/epoc-pe-arm.c +++ /dev/null @@ -1,38 +0,0 @@ -/* BFD back-end for ARM EPOC PE files. - Copyright (C) 1999-2018 Free Software Foundation, Inc. - - 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 3 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., 51 Franklin Street - Fifth Floor, Boston, - MA 02110-1301, USA. */ - -#define TARGET_UNDERSCORE 0 -#define USER_LABEL_PREFIX "" - -#define TARGET_LITTLE_SYM arm_pe_epoc_le_vec -#define TARGET_LITTLE_NAME "epoc-pe-arm-little" -#define TARGET_BIG_SYM arm_pe_epoc_be_vec -#define TARGET_BIG_NAME "epoc-pe-arm-big" - -#define bfd_arm_allocate_interworking_sections \ - bfd_arm_epoc_pe_allocate_interworking_sections -#define bfd_arm_get_bfd_for_interworking \ - bfd_arm_epoc_pe_get_bfd_for_interworking -#define bfd_arm_process_before_allocation \ - bfd_arm_epoc_pe_process_before_allocation - -#define EXTRA_S_FLAGS (SEC_LINK_ONCE | SEC_LINK_DUPLICATES | SEC_CODE | SEC_READONLY | SEC_DATA) - -#include "pe-arm.c" diff --git a/bfd/epoc-pei-arm.c b/bfd/epoc-pei-arm.c deleted file mode 100644 index 8b32aaf..0000000 --- a/bfd/epoc-pei-arm.c +++ /dev/null @@ -1,31 +0,0 @@ -/* BFD back-end for ARM EPOC PE IMAGE COFF files. - Copyright (C) 1999-2018 Free Software Foundation, Inc. - - 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 3 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., 51 Franklin Street - Fifth Floor, Boston, - MA 02110-1301, USA. */ - -#define TARGET_UNDERSCORE 0 -#define USER_LABEL_PREFIX "" - -#define TARGET_LITTLE_SYM arm_pei_epoc_le_vec -#define TARGET_LITTLE_NAME "epoc-pei-arm-little" -#define TARGET_BIG_SYM arm_pei_epoc_be_vec -#define TARGET_BIG_NAME "epoc-pei-arm-big" - -#define EXTRA_S_FLAGS (SEC_CODE | SEC_READONLY | SEC_DATA) - -#include "pei-arm.c" diff --git a/bfd/po/SRC-POTFILES.in b/bfd/po/SRC-POTFILES.in index 4de3163..62339ec 100644 --- a/bfd/po/SRC-POTFILES.in +++ b/bfd/po/SRC-POTFILES.in @@ -230,8 +230,6 @@ elfxx-sparc.c elfxx-tilegx.c elfxx-x86.c elfxx-x86.c -epoc-pe-arm.c -epoc-pei-arm.c format.c freebsd.h genlink.h diff --git a/bfd/targets.c b/bfd/targets.c index 4042f6f..cce8b74 100644 --- a/bfd/targets.c +++ b/bfd/targets.c @@ -614,14 +614,10 @@ extern const bfd_target arm_elf32_vxworks_le_vec; extern const bfd_target arm_mach_o_vec; extern const bfd_target arm_pe_be_vec; extern const bfd_target arm_pe_le_vec; -extern const bfd_target arm_pe_epoc_be_vec; -extern const bfd_target arm_pe_epoc_le_vec; extern const bfd_target arm_pe_wince_be_vec; extern const bfd_target arm_pe_wince_le_vec; extern const bfd_target arm_pei_be_vec; extern const bfd_target arm_pei_le_vec; -extern const bfd_target arm_pei_epoc_be_vec; -extern const bfd_target arm_pei_epoc_le_vec; extern const bfd_target arm_pei_wince_be_vec; extern const bfd_target arm_pei_wince_le_vec; extern const bfd_target avr_elf32_vec; @@ -960,14 +956,10 @@ static const bfd_target * const _bfd_target_vector[] = &arm_mach_o_vec, &arm_pe_be_vec, &arm_pe_le_vec, - &arm_pe_epoc_be_vec, - &arm_pe_epoc_le_vec, &arm_pe_wince_be_vec, &arm_pe_wince_le_vec, &arm_pei_be_vec, &arm_pei_le_vec, - &arm_pei_epoc_be_vec, - &arm_pei_epoc_le_vec, &arm_pei_wince_be_vec, &arm_pei_wince_le_vec, diff --git a/binutils/ChangeLog b/binutils/ChangeLog index 9e35aa6..3559c02 100644 --- a/binutils/ChangeLog +++ b/binutils/ChangeLog @@ -1,5 +1,11 @@ 2018-04-16 Alan Modra + * configure.ac: Remove arm-epoc-pe support. + * dlltool.c: Likewise. + * configure: Regenerate. + +2018-04-16 Alan Modra + * testsuite/lib/binutils-common.exp: Remove sparc-aout and sparc-coff support. diff --git a/binutils/configure b/binutils/configure index 2e90d60..05fc9af 100755 --- a/binutils/configure +++ b/binutils/configure @@ -14453,15 +14453,6 @@ do esac case $targ in - arm-epoc-pe*) - BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)' - if test -z "$DLLTOOL_DEFAULT"; then - DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_ARM_EPOC" - fi - DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_ARM_EPOC -DDLLTOOL_ARM" - BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)' - BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)' - ;; arm-wince-pe* | arm-*-wince | arm*-*-cegcc* | arm*-*-mingw32ce*) BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)' if test -z "$DLLTOOL_DEFAULT"; then diff --git a/binutils/configure.ac b/binutils/configure.ac index 9e4ba6f..0d3e732 100644 --- a/binutils/configure.ac +++ b/binutils/configure.ac @@ -263,15 +263,6 @@ do esac case $targ in - arm-epoc-pe*) - BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)' - if test -z "$DLLTOOL_DEFAULT"; then - DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_ARM_EPOC" - fi - DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_ARM_EPOC -DDLLTOOL_ARM" - BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)' - BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)' - ;; arm-wince-pe* | arm-*-wince | arm*-*-cegcc* | arm*-*-mingw32ce*) BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)' if test -z "$DLLTOOL_DEFAULT"; then diff --git a/binutils/dlltool.c b/binutils/dlltool.c index 189907a..21c95ef 100644 --- a/binutils/dlltool.c +++ b/binutils/dlltool.c @@ -436,10 +436,6 @@ static FILE *base_file; static const char *mname = "arm"; #endif -#ifdef DLLTOOL_DEFAULT_ARM_EPOC -static const char *mname = "arm-epoc"; -#endif - #ifdef DLLTOOL_DEFAULT_ARM_WINCE static const char *mname = "arm-wince"; #endif @@ -733,17 +729,7 @@ mtable[] = } , { -#define MARM_EPOC 9 - "arm-epoc", ".byte", ".short", ".long", ".asciz", "@", - "ldr\tip,[pc]\n\tldr\tpc,[ip]\n\t.long", - ".global", ".space", ".align\t2",".align\t4", "", - "epoc-pe-arm-little", bfd_arch_arm, - arm_jtab, sizeof (arm_jtab), 8, - 0, 0, 0, 0, 0, 0 - } - , - { -#define MARM_WINCE 10 +#define MARM_WINCE 9 "arm-wince", ".byte", ".short", ".long", ".asciz", "@", "ldr\tip,[pc]\n\tldr\tpc,[ip]\n\t.long", ".global", ".space", ".align\t2",".align\t4", "-mapcs-32", @@ -753,7 +739,7 @@ mtable[] = } , { -#define MX86 11 +#define MX86 10 "i386:x86-64", ".byte", ".short", ".long", ".asciz", "#", "jmp *", ".global", ".space", ".align\t2",".align\t4", "", "pe-x86-64",bfd_arch_i386, @@ -908,7 +894,6 @@ rvaafter (int mach) case MMCORE_LE: case MMCORE_ELF: case MMCORE_ELF_LE: - case MARM_EPOC: case MARM_WINCE: break; default: @@ -934,7 +919,6 @@ rvabefore (int mach) case MMCORE_LE: case MMCORE_ELF: case MMCORE_ELF_LE: - case MARM_EPOC: case MARM_WINCE: return ".rva\t"; default: @@ -958,7 +942,6 @@ asm_prefix (int mach, const char *name) case MMCORE_LE: case MMCORE_ELF: case MMCORE_ELF_LE: - case MARM_EPOC: case MARM_WINCE: break; case M386: diff --git a/gas/ChangeLog b/gas/ChangeLog index e837e5c..874c3a2 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,5 +1,18 @@ 2018-04-16 Alan Modra + * Makefile.am: Remove arm-epoc-pe support. + * config/tc-arm.h: Likewise. + * configure.tgt: Likewise. + * testsuite/gas/all/gas.exp: Likewise. + * testsuite/gas/arm/local_label_coff.d: Likewise. + * testsuite/gas/arm/undefined.d: Likewise. + * testsuite/gas/arm/undefined_coff.d: Likewise. + * config/te-epoc-pe.h: Delete. + * Makefile.in: Regenerate. + * po/POTFILES.in: Regenerate. + +2018-04-16 Alan Modra + * Makefile.am: Remove sparc-aout and sparc-coff support. * config/obj-coff.h: Likewise. * config/tc-sparc.c: Likewise. diff --git a/gas/Makefile.am b/gas/Makefile.am index ce4dfd7..a50fd69 100644 --- a/gas/Makefile.am +++ b/gas/Makefile.am @@ -307,7 +307,6 @@ TARG_ENV_HFILES = \ config/te-armfbsdvfp.h \ config/te-armlinuxeabi.h \ config/te-dynix.h \ - config/te-epoc-pe.h \ config/te-freebsd.h \ config/te-generic.h \ config/te-gnu.h \ diff --git a/gas/Makefile.in b/gas/Makefile.in index 45dca93..a9847fa 100644 --- a/gas/Makefile.in +++ b/gas/Makefile.in @@ -603,7 +603,6 @@ TARG_ENV_HFILES = \ config/te-armfbsdvfp.h \ config/te-armlinuxeabi.h \ config/te-dynix.h \ - config/te-epoc-pe.h \ config/te-freebsd.h \ config/te-generic.h \ config/te-gnu.h \ diff --git a/gas/config/tc-arm.h b/gas/config/tc-arm.h index 532a4fdd..f50d7c9 100644 --- a/gas/config/tc-arm.h +++ b/gas/config/tc-arm.h @@ -63,9 +63,7 @@ struct fix; #elif defined OBJ_COFF # define ARM_BI_ENDIAN # if defined TE_PE -# if defined TE_EPOC -# define TARGET_FORMAT (target_big_endian ? "epoc-pe-arm-big" : "epoc-pe-arm-little") -# elif defined TE_WINCE +# if defined TE_WINCE # define TARGET_FORMAT (target_big_endian ? "pe-arm-wince-big" : "pe-arm-wince-little") # else # define TARGET_FORMAT (target_big_endian ? "pe-arm-big" : "pe-arm-little") diff --git a/gas/config/te-epoc-pe.h b/gas/config/te-epoc-pe.h deleted file mode 100644 index 37c825d..0000000 --- a/gas/config/te-epoc-pe.h +++ /dev/null @@ -1,27 +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_PE -#define TE_EPOC -#define LEX_AT 1 /* can have @'s inside labels */ - -/* The PE format supports long section names. */ -#define COFF_LONG_SECTION_NAMES - -#include "obj-format.h" diff --git a/gas/configure.tgt b/gas/configure.tgt index ad2bbe2..cc8c361 100644 --- a/gas/configure.tgt +++ b/gas/configure.tgt @@ -157,7 +157,6 @@ case ${generic_target} in arm-*-netbsdelf*) fmt=elf em=nbsd ;; arm-*-*n*bsd*) fmt=aout em=nbsd ;; arm-*-nto*) fmt=elf ;; - arm-epoc-pe) fmt=coff em=epoc-pe ;; arm-wince-pe | arm-*-wince | arm*-*-mingw32ce* | arm*-*-cegcc*) fmt=coff em=wince-pe ;; arm-*-pe) fmt=coff em=pe ;; diff --git a/gas/po/POTFILES.in b/gas/po/POTFILES.in index 139d955..91b1d4c 100644 --- a/gas/po/POTFILES.in +++ b/gas/po/POTFILES.in @@ -182,7 +182,6 @@ config/te-armfbsdeabi.h config/te-armfbsdvfp.h config/te-armlinuxeabi.h config/te-dynix.h -config/te-epoc-pe.h config/te-freebsd.h config/te-generic.h config/te-gnu.h diff --git a/gas/testsuite/gas/all/gas.exp b/gas/testsuite/gas/all/gas.exp index ccec04b..029795b 100644 --- a/gas/testsuite/gas/all/gas.exp +++ b/gas/testsuite/gas/all/gas.exp @@ -161,7 +161,6 @@ case $target_triplet in { { z80-*-* } { } default { run_dump_test redef - setup_xfail "arm-epoc-pe*" # These targets fail redef2 because they disallow redefined # symbols on relocs. setup_xfail "m68hc1*-*-*" "m6811-*-*" "m6812-*-*" "rl78-*-*" diff --git a/gas/testsuite/gas/arm/local_label_coff.d b/gas/testsuite/gas/arm/local_label_coff.d index 5e45ac8..e953a27 100644 --- a/gas/testsuite/gas/arm/local_label_coff.d +++ b/gas/testsuite/gas/arm/local_label_coff.d @@ -2,7 +2,7 @@ #name: ARM local label relocs to section symbol relocs (COFF) # This test is only valid on COFF based targets, except Windows CE. # There are ELF and Windows CE versions of this test. -#not-skip: *-unknown-pe *-epoc-pe *-*-*coff +#not-skip: *-unknown-pe *-*-*coff # Check if relocations against local symbols are converted to # relocations against section symbols. diff --git a/gas/testsuite/gas/arm/undefined.d b/gas/testsuite/gas/arm/undefined.d index 6c8bca7..3126b84 100644 --- a/gas/testsuite/gas/arm/undefined.d +++ b/gas/testsuite/gas/arm/undefined.d @@ -1,5 +1,5 @@ #name: Undefined local label error # COFF and aout based ports, except Windows CE, # use a different naming convention for local labels. -#skip: *-*-*coff *-unknown-pe *-epoc-pe *-*-*aout* *-*-netbsd *-*-riscix* *-*-vxworks +#skip: *-*-*coff *-unknown-pe *-*-*aout* *-*-netbsd *-*-riscix* *-*-vxworks #error-output: undefined.l diff --git a/gas/testsuite/gas/arm/undefined_coff.d b/gas/testsuite/gas/arm/undefined_coff.d index d280027..a8fb949 100644 --- a/gas/testsuite/gas/arm/undefined_coff.d +++ b/gas/testsuite/gas/arm/undefined_coff.d @@ -1,5 +1,5 @@ #name: Undefined local label error # COFF and aout based ports, except Windows CE, # use a different naming convention for local labels. -#not-skip: *-*-*coff *-unknown-pe *-epoc-pe *-*-*aout* *-*-netbsd *-*-riscix* +#not-skip: *-*-*coff *-unknown-pe *-*-*aout* *-*-netbsd *-*-riscix* #error-output: undefined_coff.l diff --git a/ld/ChangeLog b/ld/ChangeLog index af1c0e9..86f1b36 100644 --- a/ld/ChangeLog +++ b/ld/ChangeLog @@ -1,5 +1,18 @@ 2018-04-16 Alan Modra + * Makefile.am: Remove arm-epoc-pe support. + * configure.tgt: Likewise. + * emultempl/pe.em: Likewise. + * pe-dll.c: Likewise. + * testsuite/ld-scripts/fill.d: Likewise. + * testsuite/ld-scripts/fill16.d: Likewise. + * emulparams/arm_epoc_pe.sh: Delete. + * scripttempl/epocpe.sc: Delete. + * Makefile.in: Regenerate. + * po/BLD-POTFILES.in: Regenerate. + +2018-04-16 Alan Modra + * Makefile.am: Remove sparc-aout and sparc-coff support. * configure.tgt: Likewise. * testsuite/ld-elfvers/vers.exp: Likewise. diff --git a/ld/Makefile.am b/ld/Makefile.am index 0998a05..4ae2c0f 100644 --- a/ld/Makefile.am +++ b/ld/Makefile.am @@ -166,7 +166,6 @@ ALL_EMULATION_SOURCES = \ earclinux.c \ earclinux_nps.c \ earclinux_prof.c \ - earm_epoc_pe.c \ earm_wince_pe.c \ earmaoutb.c \ earmaoutl.c \ @@ -690,9 +689,6 @@ earclinux_prof.c: $(srcdir)/emulparams/arclinux_prof.sh \ $(ELF_DEPS) $(srcdir)/emultempl/arclinux.em \ $(srcdir)/scripttempl/arclinux.sc ${GEN_DEPENDS} -earm_epoc_pe.c: $(srcdir)/emulparams/arm_epoc_pe.sh \ - $(srcdir)/emultempl/pe.em $(srcdir)/scripttempl/epocpe.sc ${GEN_DEPENDS} - earm_wince_pe.c: $(srcdir)/emulparams/arm_wince_pe.sh \ $(srcdir)/emultempl/pe.em $(srcdir)/scripttempl/pe.sc ${GEN_DEPENDS} diff --git a/ld/Makefile.in b/ld/Makefile.in index 3c67306..3353448 100644 --- a/ld/Makefile.in +++ b/ld/Makefile.in @@ -535,7 +535,6 @@ ALL_EMULATION_SOURCES = \ earclinux.c \ earclinux_nps.c \ earclinux_prof.c \ - earm_epoc_pe.c \ earm_wince_pe.c \ earmaoutb.c \ earmaoutl.c \ @@ -1092,7 +1091,6 @@ distclean-compile: @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/earclinux_prof.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/earcv2elf.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/earcv2elfx.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/earm_epoc_pe.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/earm_wince_pe.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/earmaoutb.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/earmaoutl.Po@am__quote@ @@ -2201,9 +2199,6 @@ earclinux_prof.c: $(srcdir)/emulparams/arclinux_prof.sh \ $(ELF_DEPS) $(srcdir)/emultempl/arclinux.em \ $(srcdir)/scripttempl/arclinux.sc ${GEN_DEPENDS} -earm_epoc_pe.c: $(srcdir)/emulparams/arm_epoc_pe.sh \ - $(srcdir)/emultempl/pe.em $(srcdir)/scripttempl/epocpe.sc ${GEN_DEPENDS} - earm_wince_pe.c: $(srcdir)/emulparams/arm_wince_pe.sh \ $(srcdir)/emultempl/pe.em $(srcdir)/scripttempl/pe.sc ${GEN_DEPENDS} diff --git a/ld/configure.tgt b/ld/configure.tgt index ca11eca..93bd07f 100644 --- a/ld/configure.tgt +++ b/ld/configure.tgt @@ -97,7 +97,6 @@ arc*-*-linux*) case "${with_cpu}" in esac targ_extra_emuls="${targ_extra_emuls} arclinux_prof arcelf arcelf_prof arcv2elf arcv2elfx" ;; -arm-epoc-pe) targ_emul=arm_epoc_pe ; targ_extra_ofiles="deffilep.o pe-dll.o" ;; arm*-*-cegcc*) targ_emul=arm_wince_pe ; targ_extra_ofiles="deffilep.o pe-dll.o" LIB_PATH='${tooldir}/lib/w32api' ;; arm-wince-pe | arm-*-wince | arm*-*-mingw32ce*) diff --git a/ld/emulparams/arm_epoc_pe.sh b/ld/emulparams/arm_epoc_pe.sh deleted file mode 100644 index 51a3f76..0000000 --- a/ld/emulparams/arm_epoc_pe.sh +++ /dev/null @@ -1,9 +0,0 @@ -ARCH=arm -SCRIPT_NAME=epocpe -OUTPUT_FORMAT="epoc-pei-arm-little" -LITTLE_OUTPUT_FORMAT="epoc-pei-arm-little" -BIG_OUTPUT_FORMAT="epoc-pei-arm-big" -TEMPLATE_NAME=pe -SUBSYSTEM=PE_DEF_SUBSYSTEM -INITIAL_SYMBOL_CHAR=\"_\" -TARGET_PAGE_SIZE=0x1000 diff --git a/ld/emultempl/pe.em b/ld/emultempl/pe.em index 06cfe7d..463b854 100644 --- a/ld/emultempl/pe.em +++ b/ld/emultempl/pe.em @@ -40,7 +40,6 @@ fragment <