From fe49679d5193f6ff7cfd333e30883d293112a3d1 Mon Sep 17 00:00:00 2001 From: Alan Modra Date: Wed, 8 Jul 2020 21:21:32 +0930 Subject: Remove powerpc PE support Plus some leftover powerpc lynxos support. bfd/ * coff-ppc.c: Delete. * pe-ppc.c: Delete. * pei-ppc.c: Delete. * Makefile.am (BFD32_BACKENDS, BFD32_BACKENDS_CFILES): Remove PE PPC. * coffcode.h (coff_set_arch_mach_hook, coff_set_flags): Remove PPCMAGIC code. (coff_write_object_contents): Remove PPC_PE code. * config.bfd: Move powerpcle-pe to removed targets. * configure.ac: Remove powerpc PE entries. * libcoff-in.h (ppc_allocate_toc_section): Delete. (ppc_process_before_allocation): Delete. * peXXigen.c: Remove POWERPC_LE_PE code and comments. * targets.c: Remove powerpc PE vectors. * po/SRC-POTFILES.in: Regenerate. * libcoff.h: Regenerate. * Makefile.in: Regenerate. * configure: Regenerate. binutils/ * dlltool.c: Remove powerpc PE support and comments. * configure.ac: Remove powerpc PE dlltool config. * configure: Regenerate. gas/ * config/obj-coff.h: Remove TE_PE support. * config/tc-ppc.c: Likewise. * config/tc-ppc.h: Likewise. * configure.tgt: Remove powerpc PE and powerpc lynxos. * testsuite/gas/cfi/cfi.exp (cfi-common-6): Remove powerpc PE condition. * testsuite/gas/macros/macros.exp: Don't xfail powerpc PE. include/ * coff/powerpc.h: Delete. ld/ * emulparams/ppcpe.sh: Delete. * scripttempl/ppcpe.sc: Delete. * emulparams/ppclynx.sh: Delete. * Makefile.am (ALL_EMULATION_SOURCES): Remove ppc PE and lynxos. * configure.tgt: Likewise. * emultempl/beos.em: Remove powerpc PE support. * emultempl/pe.em: Likewise. * po/BLD-POTFILES.in: Regenerate. * Makefile.in: Regenerate. --- ld/ChangeLog | 12 +++ ld/Makefile.am | 4 - ld/Makefile.in | 6 -- ld/configure.tgt | 6 -- ld/emulparams/ppclynx.sh | 12 --- ld/emulparams/ppcpe.sh | 7 -- ld/emultempl/beos.em | 21 +---- ld/emultempl/pe.em | 17 ---- ld/po/BLD-POTFILES.in | 2 - ld/scripttempl/ppcpe.sc | 208 ----------------------------------------------- 10 files changed, 13 insertions(+), 282 deletions(-) delete mode 100644 ld/emulparams/ppclynx.sh delete mode 100644 ld/emulparams/ppcpe.sh delete mode 100644 ld/scripttempl/ppcpe.sc (limited to 'ld') diff --git a/ld/ChangeLog b/ld/ChangeLog index 195731e..14f31a8 100644 --- a/ld/ChangeLog +++ b/ld/ChangeLog @@ -1,5 +1,17 @@ 2020-07-09 Alan Modra + * emulparams/ppcpe.sh: Delete. + * scripttempl/ppcpe.sc: Delete. + * emulparams/ppclynx.sh: Delete. + * Makefile.am (ALL_EMULATION_SOURCES): Remove ppc PE and lynxos. + * configure.tgt: Likewise. + * emultempl/beos.em: Remove powerpc PE support. + * emultempl/pe.em: Likewise. + * po/BLD-POTFILES.in: Regenerate. + * Makefile.in: Regenerate. + +2020-07-09 Alan Modra + * testsuite/ld-gc/gc.exp: Don't set -mminimal-toc for powerpc64, and remove powerpc64 xfail. Use -fno-PIE for ppc32. diff --git a/ld/Makefile.am b/ld/Makefile.am index 02c4fc1..38ff2d9 100644 --- a/ld/Makefile.am +++ b/ld/Makefile.am @@ -342,9 +342,7 @@ ALL_EMULATION_SOURCES = \ epdp11.c \ epjelf.c \ epjlelf.c \ - eppclynx.c \ eppcmacos.c \ - eppcpe.c \ epruelf.c \ escore3_elf.c \ escore7_elf.c \ @@ -828,9 +826,7 @@ $(ALL_EMULATION_SOURCES) $(ALL_64_EMULATION_SOURCES): $(GEN_DEPENDS) @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/epdp11.Pc@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/epjelf.Pc@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/epjlelf.Pc@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/eppclynx.Pc@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/eppcmacos.Pc@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/eppcpe.Pc@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/epruelf.Pc@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/escore3_elf.Pc@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/escore7_elf.Pc@am__quote@ diff --git a/ld/Makefile.in b/ld/Makefile.in index 2fe12e1..aaf322d 100644 --- a/ld/Makefile.in +++ b/ld/Makefile.in @@ -825,9 +825,7 @@ ALL_EMULATION_SOURCES = \ epdp11.c \ epjelf.c \ epjlelf.c \ - eppclynx.c \ eppcmacos.c \ - eppcpe.c \ epruelf.c \ escore3_elf.c \ escore7_elf.c \ @@ -1440,9 +1438,7 @@ distclean-compile: @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/epdp11.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/epjelf.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/epjlelf.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/eppclynx.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/eppcmacos.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/eppcpe.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/epruelf.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/escore3_elf.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/escore7_elf.Po@am__quote@ @@ -2423,9 +2419,7 @@ $(ALL_EMULATION_SOURCES) $(ALL_64_EMULATION_SOURCES): $(GEN_DEPENDS) @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/epdp11.Pc@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/epjelf.Pc@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/epjlelf.Pc@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/eppclynx.Pc@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/eppcmacos.Pc@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/eppcpe.Pc@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/epruelf.Pc@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/escore3_elf.Pc@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/escore7_elf.Pc@am__quote@ diff --git a/ld/configure.tgt b/ld/configure.tgt index 87c7d9a..32f17d2 100644 --- a/ld/configure.tgt +++ b/ld/configure.tgt @@ -721,10 +721,6 @@ powerpcle-*-nto*) targ_emul=elf32lppcnto powerpc-*-macos*) targ_emul=ppcmacos targ_extra_ofiles= ;; -powerpcle-*-pe | powerpcle-*-winnt* | powerpcle-*-cygwin*) - targ_emul=ppcpe - targ_extra_ofiles="deffilep.o pe-dll.o" - ;; powerpc-*-aix[5-9]*) targ_emul=aix5ppc targ_extra_ofiles= ;; @@ -736,8 +732,6 @@ powerpc-*-beos*) targ_emul=aixppc ;; powerpc-*-windiss*) targ_emul=elf32ppcwindiss ;; -powerpc-*-lynxos*) targ_emul=ppclynx - ;; pru*-*-*) targ_emul=pruelf ;; riscv32*-*-linux*) targ_emul=elf32lriscv diff --git a/ld/emulparams/ppclynx.sh b/ld/emulparams/ppclynx.sh deleted file mode 100644 index a58b5b0..0000000 --- a/ld/emulparams/ppclynx.sh +++ /dev/null @@ -1,12 +0,0 @@ -source_sh ${srcdir}/emulparams/elf32ppc.sh - -TEXT_BASE=0x00002000 -DYN_TEXT_BASE=0x00400000 -TEXT_START_ADDR="(DEFINED(_DYNAMIC) ? ${DYN_TEXT_BASE} : ${TEXT_BASE})" -case ${LD_FLAG} in - n|N) TEXT_START_ADDR=0x1000 ;; -esac -ELF_INTERPRETER_NAME=\"/usr/lib/ld.so.1\" - -# Leave room of SIZEOF_HEADERS before text. -EMBEDDED= diff --git a/ld/emulparams/ppcpe.sh b/ld/emulparams/ppcpe.sh deleted file mode 100644 index ed7df88..0000000 --- a/ld/emulparams/ppcpe.sh +++ /dev/null @@ -1,7 +0,0 @@ -ARCH=powerpc -SCRIPT_NAME=ppcpe -OUTPUT_FORMAT="pei-powerpcle" -TEMPLATE_NAME=pe -SUBSYSTEM=PE_DEF_SUBSYSTEM -INITIAL_SYMBOL_CHAR=\"_\" -TARGET_PAGE_SIZE=0x1000 diff --git a/ld/emultempl/beos.em b/ld/emultempl/beos.em index 4da5eee..ace6e3a 100644 --- a/ld/emultempl/beos.em +++ b/ld/emultempl/beos.em @@ -608,22 +608,6 @@ sort_sections (lang_statement_union_type *s) static void gld_${EMULATION_NAME}_before_allocation (void) { -#ifdef TARGET_IS_ppcpe - /* Here we rummage through the found bfds to collect toc information */ - { - LANG_FOR_EACH_INPUT_STATEMENT (is) - { - if (!ppc_process_before_allocation(is->the_bfd, &link_info)) - { - einfo (_("%P: errors encountered processing file %s\n"), - is->filename); - } - } - } - - /* We have seen it all. Allocate it, and carry on */ - ppc_allocate_toc_section (&link_info); -#else #ifdef TARGET_IS_armpe /* FIXME: we should be able to set the size of the interworking stub section. @@ -645,7 +629,6 @@ gld_${EMULATION_NAME}_before_allocation (void) /* We have seen it all. Allocate it, and carry on */ arm_allocate_interworking_sections (& link_info); #endif /* TARGET_IS_armpe */ -#endif /* TARGET_IS_ppcpe */ sort_sections (stat_ptr->head); @@ -698,9 +681,7 @@ gld${EMULATION_NAME}_place_orphan (asection *s, os = lang_output_section_statement_lookup (output_secname, constraint, TRUE); /* Find the '\$' wild statement for this section. We currently require the - linker script to explicitly mention "*(.foo\$)". - FIXME: ppcpe.sc has .CRT\$foo in the .rdata section. According to the - Microsoft docs this isn't correct so it's not (currently) handled. */ + linker script to explicitly mention "*(.foo\$)". */ ps[0] = '\$'; ps[1] = 0; diff --git a/ld/emultempl/pe.em b/ld/emultempl/pe.em index 3899c9d..eb7c812 100644 --- a/ld/emultempl/pe.em +++ b/ld/emultempl/pe.em @@ -1741,23 +1741,6 @@ gld_${EMULATION_NAME}_after_open (void) static void gld_${EMULATION_NAME}_before_allocation (void) { -#ifdef TARGET_IS_ppcpe - /* Here we rummage through the found bfds to collect toc information. */ - { - LANG_FOR_EACH_INPUT_STATEMENT (is) - { - if (!ppc_process_before_allocation (is->the_bfd, &link_info)) - { - /* xgettext:c-format */ - einfo (_("%P: errors encountered processing file %s\n"), is->filename); - } - } - } - - /* We have seen it all. Allocate it, and carry on. */ - ppc_allocate_toc_section (&link_info); -#endif /* TARGET_IS_ppcpe */ - #if defined(TARGET_IS_armpe) || defined(TARGET_IS_arm_wince_pe) /* FIXME: we should be able to set the size of the interworking stub section. diff --git a/ld/po/BLD-POTFILES.in b/ld/po/BLD-POTFILES.in index 4ef0987..a954e77 100644 --- a/ld/po/BLD-POTFILES.in +++ b/ld/po/BLD-POTFILES.in @@ -262,9 +262,7 @@ epc532macha.c epdp11.c epjelf.c epjlelf.c -eppclynx.c eppcmacos.c -eppcpe.c epruelf.c escore3_elf.c escore7_elf.c diff --git a/ld/scripttempl/ppcpe.sc b/ld/scripttempl/ppcpe.sc deleted file mode 100644 index d8e734b..0000000 --- a/ld/scripttempl/ppcpe.sc +++ /dev/null @@ -1,208 +0,0 @@ -# A PE linker script for PowerPC. -# Loosely based on Steve Chamberlain's pe.sc. -# All new mistakes should be credited to Kim Knuttila (krk@cygnus.com) -# -# Copyright (C) 2014-2020 Free Software Foundation, Inc. -# -# Copying and distribution of this file, with or without modification, -# are permitted in any medium without royalty provided the copyright -# notice and this notice are preserved. -# - -cat <