Configury for new ppc bfd
authorKim Knuttila <krk@cygnus>
Wed, 27 Sep 1995 11:36:47 +0000 (11:36 +0000)
committerKim Knuttila <krk@cygnus>
Wed, 27 Sep 1995 11:36:47 +0000 (11:36 +0000)
bfd/Makefile.in
bfd/config.bfd
bfd/configure
bfd/configure.in
bfd/targets.c

index 70c7d82cca74cbbd35799297e4f45065bdc3d289..f3253ff1a141ad9af9c74c10dad5263c2c974928 100644 (file)
@@ -194,6 +194,8 @@ BFD32_BACKENDS = \
        pei-arm.o \
        pe-i386.o \
        pei-i386.o \
+       pe-ppc.o \
+       pei-ppc.o \
        reloc16.o \
        sparclynx.o \
        sparcnetbsd.o \
@@ -277,7 +279,7 @@ CFILES = libbfd.c opncls.c bfd.c archive.c targets.c cache.c \
         sparclynx.c cf-sparclynx.c aix386-core.c hpux-core.c \
         irix-core.c lynx-core.c osf-core.c hash.c linker.c cofflink.c \
         m68knetbsd.c ns32knetbsd.c sparcnetbsd.c pe-i386.c pei-i386.c \
-        versados.c coff-arm.c pe-arm.c pei-arm.c
+        versados.c coff-arm.c pe-arm.c pei-arm.c pe-ppc.c pei-ppc.c
 
 HFILES = aout-target.h aoutf1.h aoutx.h coffcode.h \
         coffswap.h ecoffswap.h elf32-hppa.h elf32-target.h elf64-target.h \
@@ -828,5 +830,9 @@ pe-arm.o: pe-arm.c coff-arm.c $(INCDIR)/coff/arm.h \
 pei-arm.o: pei-arm.c coff-arm.c $(INCDIR)/coff/arm.h \
   $(INCDIR)/coff/internal.h $(INCDIR)/coff/pe.h libcoff.h \
   $(INCDIR)/bfdlink.h coffcode.h peicode.h
+pe-ppc.o: pe-ppc.c $(INCDIR)/coff/powerpc.h $(INCDIR)/coff/internal.h \
+  libcoff.h $(INCDIR)/bfdlink.h coffcode.h peicode.h
+pei-ppc.o: pe-ppc.c $(INCDIR)/coff/powerpc.h $(INCDIR)/coff/internal.h \
+  libcoff.h $(INCDIR)/bfdlink.h coffcode.h peicode.h
 
 # IF YOU PUT ANYTHING HERE IT WILL GO AWAY
index 29d653e1272430af9313c168b356834ba74c1860..ee0c72d4983f1b7cd638f510ffebfdf43e1f0b94 100755 (executable)
@@ -358,6 +358,16 @@ case "${targ}" in
     targ_selvecs="rs6000coff_vec bfd_elf32_powerpc_vec"
     ;;
 
+  powerpcle-*-pe | powerpcle-*-winnt*)
+    targ_defvec=bfd_powerpcle_pe_vec
+    targ_selvecs="bfd_powerpcle_pei_vec bfd_powerpc_pei_vec bfd_powerpcle_pe_vec bfd_powerpc_pe_vec"
+    ;;
+
+  powerpc-*-pe | powerpc-*-winnt*)
+    targ_defvec=bfd_powerpc_pe_vec
+    targ_selvecs="bfd_powerpcle_pei_vec bfd_powerpc_pei_vec bfd_powerpcle_pe_vec bfd_powerpc_pe_vec"
+    ;;
+
   rs6000-*-*)
     targ_defvec=rs6000coff_vec
     ;;
index 02a54301d853ca6b7eb498f6a3d365591f4e608f..62c85815ea7d3a4036259430d9b65c4e14f5ec31 100755 (executable)
@@ -1365,6 +1365,10 @@ do
     pc532netbsd_vec)           tb="$tb ns32knetbsd.o aout-ns32k.o stab-syms.o" ;;
     pc532machaout_vec)         tb="$tb pc532-mach.o aout-ns32k.o stab-syms.o" ;;
     rs6000coff_vec)            tb="$tb coff-rs6000.o" ;;
+    bfd_powerpc_pe_vec)         tb="$tb pe-ppc.o cofflink.o" ;;  
+    bfd_powerpcle_pe_vec)       tb="$tb pe-ppc.o cofflink.o" ;;  
+    bfd_powerpc_pei_vec)        tb="$tb pei-ppc.o cofflink.o" ;;
+    bfd_powerpcle_pei_vec)      tb="$tb pei-ppc.o cofflink.o" ;;
     shcoff_vec)                        tb="$tb coff-sh.o cofflink.o" ;;
 # start-sanitize-rce
     rce_aout_vec)              tb="$tb aout-rce.o aout32.o stab-syms.o" ;;
index c0669bc3b05272a5acfa845284430580efc76428..7bf0f221b970ae9185f0ce6767b9e66421ac5791 100644 (file)
@@ -410,6 +410,10 @@ do
     pc532netbsd_vec)           tb="$tb ns32knetbsd.o aout-ns32k.o stab-syms.o" ;;
     pc532machaout_vec)         tb="$tb pc532-mach.o aout-ns32k.o stab-syms.o" ;;
     rs6000coff_vec)            tb="$tb coff-rs6000.o" ;;
+    bfd_powerpc_pe_vec)         tb="$tb pe-ppc.o cofflink.o" ;;  
+    bfd_powerpcle_pe_vec)       tb="$tb pe-ppc.o cofflink.o" ;;  
+    bfd_powerpc_pei_vec)        tb="$tb pei-ppc.o cofflink.o" ;;
+    bfd_powerpcle_pei_vec)      tb="$tb pei-ppc.o cofflink.o" ;;
     shcoff_vec)                        tb="$tb coff-sh.o cofflink.o" ;;
 # start-sanitize-rce
     rce_aout_vec)              tb="$tb aout-rce.o aout32.o stab-syms.o" ;;
index 252d9eb47625c6b6d948128339432799842e099f..d39b2667c10bde5dc4aa4181cd979787b9371052 100644 (file)
@@ -499,6 +499,12 @@ extern const bfd_target i386bsd_vec;
 extern const bfd_target i386dynix_vec;
 extern const bfd_target i386os9k_vec;
 extern const bfd_target i386coff_vec;
+extern const bfd_target bfd_powerpc_vec;
+extern const bfd_target bfd_powerpcle_vec;
+extern const bfd_target bfd_powerpc_pe_vec;
+extern const bfd_target bfd_powerpcle_pe_vec;
+extern const bfd_target bfd_powerpc_pei_vec;
+extern const bfd_target bfd_powerpcle_pei_vec;
 extern const bfd_target i386pe_vec;
 extern const bfd_target i386pei_vec;
 extern const bfd_target go32coff_vec;
@@ -644,6 +650,12 @@ const bfd_target * const bfd_target_vector[] = {
        &i386aout_vec,
        &i386bsd_vec,
        &i386coff_vec,
+       &bfd_powerpc_vec,
+       &bfd_powerpcle_vec,
+       &bfd_powerpc_pe_vec,
+       &bfd_powerpcle_pe_vec,
+       &bfd_powerpc_pei_vec,
+       &bfd_powerpcle_pei_vec,
        &go32coff_vec,
 #if 0
        /* Since a.out files lack decent magic numbers, no way to recognize
@@ -809,6 +821,7 @@ bfd_find_target (target_name, abfd)
   }
 
   bfd_set_error (bfd_error_invalid_target);
+  fprintf(stderr,"Target = %s\n", target_name);
   return NULL;
 }