changes to binutils to support powerpc-openbsd
authorrahnds <rahnds@openbsd.org>
Sun, 22 Dec 1996 18:11:15 +0000 (18:11 +0000)
committerrahnds <rahnds@openbsd.org>
Sun, 22 Dec 1996 18:11:15 +0000 (18:11 +0000)
gnu/usr.bin/binutils/bfd/config.bfd
gnu/usr.bin/binutils/bfd/configure
gnu/usr.bin/binutils/bfd/configure.in
gnu/usr.bin/binutils/gas/configure
gnu/usr.bin/binutils/gas/configure.in
gnu/usr.bin/binutils/ld/configure.host
gnu/usr.bin/binutils/ld/configure.tgt

index c7adfa3..833a2bd 100644 (file)
@@ -447,7 +447,7 @@ case "${targ}" in
   powerpc-*-aix*)
     targ_defvec=rs6000coff_vec
     ;;
-  powerpc-*-elf* | powerpc-*-sysv4* | powerpc-*-eabi* | \
+  powerpc-*-*bsd* | powerpc-*-elf* | powerpc-*-sysv4* | powerpc-*-eabi* | \
   powerpc-*-solaris2* | powerpc-*-linux* | powerpc-*-rtems*)
     targ_defvec=bfd_elf32_powerpc_vec
     targ_selvecs="rs6000coff_vec bfd_elf32_powerpcle_vec bfd_powerpcle_pei_vec bfd_powerpc_pei_vec bfd_powerpcle_pe_vec bfd_powerpc_pe_vec ppcboot_vec"
index 1e99744..3c5db46 100644 (file)
@@ -1792,6 +1792,7 @@ EOF
   rs6000-*-lynx*)      COREFILE=lynx-core.o ;;
   rs6000-*-aix4*)      COREFILE=rs6000-core.o ;;
   rs6000-*-*)          COREFILE=rs6000-core.o ;;
+  powerpc-*-*bsd*)     COREFILE=netbsd-core.o ;;
   powerpc-*-aix4*)     COREFILE=rs6000-core.o ;;
   powerpc-*-aix*)      COREFILE=rs6000-core.o ;;
   sparc-*-netbsd*)
index 0a15f9d..de87fc6 100644 (file)
@@ -307,6 +307,7 @@ changequote([,])dnl
   rs6000-*-lynx*)      COREFILE=lynx-core.o ;;
   rs6000-*-aix4*)      COREFILE=rs6000-core.o ;;
   rs6000-*-*)          COREFILE=rs6000-core.o ;;
+  powerpc-*-*bsd*)     COREFILE=netbsd-core.o ;;
   powerpc-*-aix4*)     COREFILE=rs6000-core.o ;;
   powerpc-*-aix*)      COREFILE=rs6000-core.o ;;
   sparc-*-netbsd*)
index 0dfefa8..bd1d754 100644 (file)
@@ -885,7 +885,7 @@ for this_target in $target $canon_targets ; do
                            esac
                             ;;
       ppc-*-aix*)           fmt=coff ;;
-      ppc-*-elf* | ppc-*-eabi* | ppc-*-sysv4*)
+      ppc-*-*bsd* | ppc-*-elf* | ppc-*-eabi* | ppc-*-sysv4*)
                            fmt=elf
                            case "$endian" in
                            big)  targ=ppc-big ;;
index c378804..1dab6a7 100644 (file)
@@ -240,7 +240,7 @@ changequote([,])dnl
                            esac
                             ;;
       ppc-*-aix*)           fmt=coff ;;
-      ppc-*-elf* | ppc-*-eabi* | ppc-*-sysv4*)
+      ppc-*-*bsd* | ppc-*-elf* | ppc-*-eabi* | ppc-*-sysv4*)
                            fmt=elf
                            case "$endian" in
                            big)  targ=ppc-big ;;
index 9d5e527..720b0ad 100644 (file)
@@ -154,6 +154,15 @@ m88*-motorola-sysv3)
   HOSTING_LIBS='`if [ -f ../gcc/libgcc.a ] ; then echo ../gcc/libgcc.a ; else gcc -print-libgcc-file-name; fi` -lc `if [ -f ../gcc/crtend.o ]; then echo ../gcc/crtend.o; else gcc -print-file-name=crtend.o; fi` `if [ -f ../gcc/libgcc.a ] ; then echo ../gcc/libgcc.a ; else gcc -print-libgcc-file-name; fi`'
   ;;
 
+powerpc-*-*bsd*)
+  # The new BSD `make' has a bug: it doesn't pass empty arguments in
+  # shell commands.  So we need to make this value non-empty in order
+  # for the genscripts.sh call to work.  There's nothing magic about
+  # the value `/lib'; it's just a dummy.
+  NATIVE_LIB_DIRS=/lib
+  HOSTING_CRT0=/usr/lib/crt0.o
+  ;;
+
 romp-*-*)
   HDEFINES=-DNO_VARARGS
   ;;
index 9f90f6a..d48d192 100644 (file)
@@ -154,7 +154,7 @@ z8k-*-coff)                 targ_emul=z8002; targ_extra_emuls=z8001 ;;
 ns32k-pc532-mach* | ns32k-pc532-ux*)   targ_emul=pc532macha ;;
 ns32k-pc532-netbsd* | ns32k-pc532-lites*) targ_emul=ns32knbsd ;;
 ns32k-pc532-openbsd*)  targ_emul=ns32knbsd ;;
-powerpc-*-elf* | powerpc-*-eabi* | powerpc-*-linux* | powerpc-*-sysv*)
+powerpc-*-*bsd* | powerpc-*-elf* | powerpc-*-eabi* | powerpc-*-linux* | powerpc-*-sysv*)
        targ_emul=elf32ppc ;;
 powerpcle-*-elf* | powerpcle-*-eabi* | powerpcle-*-solaris* | powerpcle-*-sysv*)       targ_emul=elf32lppc ;;
 powerpc-*-rtems*)      targ_emul=elf32ppc ;;