From: Kim Knuttila Date: Wed, 27 Sep 1995 11:36:47 +0000 (+0000) Subject: Configury for new ppc bfd X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=e0c10737be16624da9cdbea83ac73c7e6e2e1e21;p=binutils-gdb.git Configury for new ppc bfd --- diff --git a/bfd/Makefile.in b/bfd/Makefile.in index 70c7d82cca7..f3253ff1a14 100644 --- a/bfd/Makefile.in +++ b/bfd/Makefile.in @@ -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 diff --git a/bfd/config.bfd b/bfd/config.bfd index 29d653e1272..ee0c72d4983 100755 --- a/bfd/config.bfd +++ b/bfd/config.bfd @@ -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 ;; diff --git a/bfd/configure b/bfd/configure index 02a54301d85..62c85815ea7 100755 --- a/bfd/configure +++ b/bfd/configure @@ -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" ;; diff --git a/bfd/configure.in b/bfd/configure.in index c0669bc3b05..7bf0f221b97 100644 --- a/bfd/configure.in +++ b/bfd/configure.in @@ -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" ;; diff --git a/bfd/targets.c b/bfd/targets.c index 252d9eb4762..d39b2667c10 100644 --- a/bfd/targets.c +++ b/bfd/targets.c @@ -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; }