powerpc-lynxos and powerpc-windiss fixes
authorAlan Modra <amodra@gmail.com>
Sat, 14 Apr 2018 01:21:23 +0000 (10:51 +0930)
committerAlan Modra <amodra@gmail.com>
Sat, 14 Apr 2018 08:23:22 +0000 (17:53 +0930)
Enabling shared lib tests showed the powerpc-lynxos target is broken,
and has been for a long time.  The breakage happened in a 2005-05-07
patch of mine, git commit 3b36f7e62, I think.  There have been no bug
reports I recall so it seems the target is dead.  powerpc-windiss is
similarly broken.

This patch fixes the breakage, and puts the targets on the obsolete
list.

bfd/
* config.bfd: Add powerpc-*-lynxos* and powerpc-*-windiss*
to obsolete list.
ld/
* emulparams/elf32ppcwindiss.sh: Rewrite to use elf32ppc.sh.
* emulparams/ppclynx.sh: Likewise.

bfd/ChangeLog
bfd/config.bfd
ld/ChangeLog
ld/emulparams/elf32ppcwindiss.sh
ld/emulparams/ppclynx.sh

index d396af1f4cb84d143f08084d1429e4a1422b62e6..7f999f71172a9dd7677fd9894c3fd22e10b43ce4 100644 (file)
@@ -1,3 +1,8 @@
+2018-04-14  Alan Modra  <amodra@gmail.com>
+
+       * config.bfd: Add powerpc-*-lynxos* and powerpc-*-windiss*
+       to obsolete list.
+
 2018-04-11  Alan Modra  <amodra@gmail.com>
 
        * aout-adobe.c: Delete.
index 881c48c92184a9dd7adab3cee707a3677240d7f0..a77a7ba7412e63f67d223a78c5949ea2c72b3dd6 100644 (file)
@@ -98,6 +98,7 @@ case $targ in
  mips*-sgi-* | mips*-*-bsd* | \
  mips*-*-lnews* | \
  mips*-*-sysv* | mips*-*-riscos* | \
+ powerpc-*-lynxos* | powerpc-*-windiss* | \
  sh*-*-symbianelf* | \
  sparclet-*-aout* | \
  sparc86x-*-aout* | \
index f8260c01b07b7a71c6be9dfd2259b2bb58b87ba1..9d5bc2d8dd34317cfff4ce8ae2f39c4fe2f08124 100644 (file)
@@ -1,3 +1,8 @@
+2018-04-14  Alan Modra  <amodra@gmail.com>
+
+       * emulparams/elf32ppcwindiss.sh: Rewrite to use elf32ppc.sh.
+       * emulparams/ppclynx.sh: Likewise.
+
 2018-04-11  Alan Modra  <amodra@gmail.com>
 
        * emulparams/coff_i860.sh: Delete.
index b40d782673ec9e0e8618a1209b9b1e4313e4ab64..d4547996e21d29390c74e050fb8624a7cabad64e 100644 (file)
@@ -1,11 +1,6 @@
-TEMPLATE_NAME=elf32
-SCRIPT_NAME=elf
-OUTPUT_FORMAT="elf32-powerpc"
-NO_REL_RELOCS=yes
-ARCH=powerpc
-MACHINE=
+. ${srcdir}/emulparams/elf32ppc.sh
+
 EMBEDDED=yes
-MAXPAGESIZE="CONSTANT (MAXPAGESIZE)"
 
 # The data below is taken from the windiss.dld linker script that comes with
 # the Diab linker.
index 76aefd6eb26def34531fc65c6ddd34d8324330ea..7451678eae731535589ba2d9cc828a55a480b93a 100644 (file)
@@ -1,23 +1,12 @@
-SCRIPT_NAME=elf
-OUTPUT_FORMAT="elf32-powerpc"
-NO_REL_RELOCS=yes
+. ${srcdir}/emulparams/elf32ppc.sh
+
 TEXT_BASE=0x00002000
 DYN_TEXT_BASE=0x00400000
 TEXT_START_ADDR="(DEFINED(_DYNAMIC) ? ${DYN_TEXT_BASE} : ${TEXT_BASE})"
-MAXPAGESIZE="CONSTANT (MAXPAGESIZE)"
 case ${LD_FLAG} in
     n|N)       TEXT_START_ADDR=0x1000 ;;
 esac
-ARCH=powerpc
-MACHINE=
-TEMPLATE_NAME=elf32
-GENERATE_SHLIB_SCRIPT=yes
 ELF_INTERPRETER_NAME=\"/usr/lib/ld.so.1\"
 
 # Leave room of SIZEOF_HEADERS before text.
 EMBEDDED=
-# PLT on PowerPC is generated at run-time.
-BSS_PLT=
-OTHER_READWRITE_SECTIONS="
-  .got1         ${RELOCATING-0} : { *(.got1) }
-  .got2         ${RELOCATING-0} : { *(.got2) }"