aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKim Knuttila <krk@cygnus>1995-09-27 11:36:47 +0000
committerKim Knuttila <krk@cygnus>1995-09-27 11:36:47 +0000
commite0c10737be16624da9cdbea83ac73c7e6e2e1e21 (patch)
tree3b44e360d18f15689c668b5a744f3cb9ac985345
parente7aa05bfcfa8bed193865802c7a98ce5a6995e6b (diff)
downloadgdb-e0c10737be16624da9cdbea83ac73c7e6e2e1e21.zip
gdb-e0c10737be16624da9cdbea83ac73c7e6e2e1e21.tar.gz
gdb-e0c10737be16624da9cdbea83ac73c7e6e2e1e21.tar.bz2
Configury for new ppc bfd
-rw-r--r--bfd/Makefile.in8
-rwxr-xr-xbfd/config.bfd10
-rwxr-xr-xbfd/configure4
-rw-r--r--bfd/configure.in4
-rw-r--r--bfd/targets.c13
5 files changed, 38 insertions, 1 deletions
diff --git a/bfd/Makefile.in b/bfd/Makefile.in
index 70c7d82..f3253ff 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 29d653e..ee0c72d 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 02a5430..62c8581 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 c0669bc..7bf0f22 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 252d9eb..d39b266 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;
}