diff options
author | David MacKenzie <djm@cygnus> | 1993-08-19 18:21:58 +0000 |
---|---|---|
committer | David MacKenzie <djm@cygnus> | 1993-08-19 18:21:58 +0000 |
commit | cf39664e3caffc2faa5e658466c73a17efba4358 (patch) | |
tree | 6ce287ca6afdff3fdb133650185da4931a52969b | |
parent | 7b23213f31d127cf0668497e5516e75cc3209e80 (diff) | |
download | gdb-cf39664e3caffc2faa5e658466c73a17efba4358.zip gdb-cf39664e3caffc2faa5e658466c73a17efba4358.tar.gz gdb-cf39664e3caffc2faa5e658466c73a17efba4358.tar.bz2 |
Thu Aug 19 09:45:51 1993 David J. Mackenzie (djm@thepub.cygnus.com)
* configure.in, targets.c: Add missing vectors to the tables.
* targets.c (target_vector) [!SELECT_VECS]: Add DEFAULT_VECTOR.
-rw-r--r-- | bfd/ChangeLog | 5 | ||||
-rw-r--r-- | bfd/configure.in | 36 | ||||
-rw-r--r-- | bfd/targets.c | 233 |
3 files changed, 176 insertions, 98 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog index 3c8abd7..b384879 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,8 @@ +Thu Aug 19 09:45:51 1993 David J. Mackenzie (djm@thepub.cygnus.com) + + * configure.in, targets.c: Add missing vectors to the tables. + * targets.c (target_vector) [!SELECT_VECS]: Add DEFAULT_VECTOR. + Tue Aug 17 18:12:32 1993 Jim Kingdon (kingdon@lioth.cygnus.com) * hosts/i386{mach3,osf1mk}.h: New files, for Mach hosting. diff --git a/bfd/configure.in b/bfd/configure.in index ffd6e11..646dfc9 100644 --- a/bfd/configure.in +++ b/bfd/configure.in @@ -49,7 +49,7 @@ all_targets=false for targ in $target $canon_targets do - bfd_target=`$srcdir/config.bfd $targ $target_cpu` + bfd_target=`$srcdir/config.bfd $targ` if [ "x$bfd_target" = "xall" ]; then all_targets=true @@ -139,25 +139,38 @@ if [ x${all_targets} = xfalse ]; then for vec in $SELECT_VECS do case "$vec" in + # This list is alphabetized to make it easy to compare + # with the two vector lists in targets.c. + # Vectors that don't compile on all systems, or aren't finished, + # should have a commented out entry here, to show that + # it wasn't omitted by mistake. a29kcoff_big_vec) tb="$tb coff-a29k.o" ;; a_out_adobe_vec) tb="$tb aout-adobe.o aout32.o stab-syms.o" ;; + #aout_mips_big_vec) ;; aout_mips_little_vec) tb="$tb mipsbsd.o aout32.o stab-syms.o" ;; b_out_vec_big_host) tb="$tb bout.o aout32.o stab-syms.o" ;; b_out_vec_little_host) tb="$tb bout.o aout32.o stab-syms.o" ;; + #bfd_elf32_big_generic_vec) ;; + #bfd_elf32_bigmips_vec) ;; bfd_elf32_hppa_vec) tb="$tb elf32-hppa.o elf32.o elf.o" ;; bfd_elf32_i386_vec) tb="$tb elf32-i386.o elf32.o elf.o" ;; bfd_elf32_i860_vec) tb="$tb elf32-i860.o elf32.o elf.o" ;; + #bfd_elf32_little_generic_vec) ;; + #bfd_elf32_littlemips_vec) ;; bfd_elf32_m68k_vec) tb="$tb elf32-m68k.o elf32.o elf.o" ;; + #bfd_elf32_m88k_vec) ;; bfd_elf32_sparc_vec) tb="$tb elf32-sparc.o elf32.o elf.o" ;; + #bfd_elf64_big_generic_vec) ;; + #bfd_elf64_little_generic_vec) ;; # start-sanitize-v9 bfd_elf64_sparc_vec) tb="$tb elf64-sparc.o elf64.o elf.o" ;; # end-sanitize-v9 - bfd_nlm32_i386_vec) tb="$tb nlm32-i386.o nlm32.o nlm.o" ;; + #demo_64_vec) ;; ecoff_big_vec) tb="$tb coff-mips.o" ;; ecoff_little_vec) tb="$tb coff-mips.o" ;; ecoffalpha_little_vec) tb="$tb coff-alpha.o" ;; - h8300coff_vec) tb="$tb coff-h8300.o" ;; - h8500coff_vec) tb="$tb coff-h8500.o" ;; + h8300coff_vec) tb="$tb coff-h8300.o reloc16.o" ;; + h8500coff_vec) tb="$tb coff-h8500.o reloc16.o" ;; host_aout_vec) tb="$tb host-aout.o aout32.o stab-syms.o" ;; hp300bsd_vec) tb="$tb hp300bsd.o aout32.o stab-syms.o" ;; hp300hpux_vec) tb="$tb hp300hpux.o aout32.o stab-syms.o" ;; @@ -174,13 +187,20 @@ if [ x${all_targets} = xfalse ]; then m68kcoffun_vec) tb="$tb coff-u68k.o coff-m68k.o" ;; m88kbcs_vec) tb="$tb coff-m88k.o" ;; newsos3_vec) tb="$tb newsos3.o aout32.o stab-syms.o" ;; + #nlm32_big_generic_vec) ;; + nlm32_i386_vec) tb="$tb nlm32-i386.o nlm32.o nlm.o" ;; + #nlm32_little_generic_vec) ;; + #nlm64_big_generic_vec) ;; + #nlm64_little_generic_vec) ;; rs6000coff_vec) tb="$tb coff-rs6000.o" ;; - shcoff_vec) tb="$tb coff-sh.o" ;; - srec_vec) tb="$tb srec.o" ;; + shcoff_vec) tb="$tb coff-sh.o reloc16.o" ;; sunos_big_vec) tb="$tb sunos.o aout32.o stab-syms.o" ;; - symbolsrec_vec) tb="$tb srec.o" ;; + #tekhex_vec) ;; we32kcoff_vec) tb="$tb coff-we32k.o" ;; - z8kcoff_vec) tb="$tb coff-z8k.o" ;; + z8kcoff_vec) tb="$tb coff-z8k.o reloc16.o" ;; + + srec_vec) tb="$tb srec.o" ;; + symbolsrec_vec) tb="$tb srec.o" ;; "") ;; *) echo "*** unknown target vector $vec" 1>&2; exit 1 ;; diff --git a/bfd/targets.c b/bfd/targets.c index ce81905..f771683 100644 --- a/bfd/targets.c +++ b/bfd/targets.c @@ -318,64 +318,75 @@ in this structure. */ -/* All known xvecs. They are listed a second time below, since +/* All known xvecs (even those that don't compile on all systems). + Alphabetized for easy reference. + They are listed a second time below, since we can't intermix extern's and initializers. */ -extern bfd_target i386lynx_vec; -extern bfd_target ecoff_little_vec; -extern bfd_target ecoff_big_vec; -extern bfd_target aout_mips_little_vec; -extern bfd_target aout_mips_big_vec; -extern bfd_target sunos_big_vec; -extern bfd_target demo_64_vec; -extern bfd_target srec_vec; -extern bfd_target symbolsrec_vec; -extern bfd_target tekhex_vec; +extern bfd_target a29kcoff_big_vec; extern bfd_target a_out_adobe_vec; -extern bfd_target b_out_vec_little_host; +extern bfd_target aout_mips_big_vec; +extern bfd_target aout_mips_little_vec; extern bfd_target b_out_vec_big_host; -extern bfd_target icoff_little_vec; -extern bfd_target icoff_big_vec; -extern bfd_target bfd_elf32_sparc_vec; +extern bfd_target b_out_vec_little_host; +extern bfd_target bfd_elf32_big_generic_vec; +extern bfd_target bfd_elf32_bigmips_vec; +extern bfd_target bfd_elf32_hppa_vec; extern bfd_target bfd_elf32_i386_vec; -extern bfd_target bfd_elf32_m68k_vec; extern bfd_target bfd_elf32_i860_vec; -extern bfd_target bfd_elf32_m88k_vec; -extern bfd_target bfd_elf32_bigmips_vec; -extern bfd_target bfd_elf32_littlemips_vec; -extern bfd_target bfd_elf32_big_generic_vec; extern bfd_target bfd_elf32_little_generic_vec; +extern bfd_target bfd_elf32_littlemips_vec; +extern bfd_target bfd_elf32_m68k_vec; +extern bfd_target bfd_elf32_m88k_vec; +extern bfd_target bfd_elf32_sparc_vec; extern bfd_target bfd_elf64_big_generic_vec; extern bfd_target bfd_elf64_little_generic_vec; -extern bfd_target nlm32_i386_vec; +/* start-sanitize-v9 */ +extern bfd_target bfd_elf64_sparc_vec; +/* end-sanitize-v9 */ +extern bfd_target demo_64_vec; +extern bfd_target ecoff_big_vec; +extern bfd_target ecoff_little_vec; +extern bfd_target ecoffalpha_little_vec; +extern bfd_target h8300coff_vec; +extern bfd_target h8500coff_vec; +extern bfd_target host_aout_vec; +extern bfd_target hp300bsd_vec; +extern bfd_target hp300hpux_vec; +extern bfd_target hppa_vec; +extern bfd_target i386aout_vec; +extern bfd_target i386bsd_vec; +extern bfd_target i386coff_vec; +extern bfd_target i386linux_vec; +extern bfd_target i386lynx_vec; +extern bfd_target icoff_big_vec; +extern bfd_target icoff_little_vec; +extern bfd_target ieee_vec; +extern bfd_target m68kcoff_vec; +extern bfd_target m68kcoffun_vec; +extern bfd_target m88kbcs_vec; +extern bfd_target newsos3_vec; extern bfd_target nlm32_big_generic_vec; +extern bfd_target nlm32_i386_vec; extern bfd_target nlm32_little_generic_vec; extern bfd_target nlm64_big_generic_vec; extern bfd_target nlm64_little_generic_vec; -extern bfd_target ieee_vec; extern bfd_target oasys_vec; -extern bfd_target m88kbcs_vec; -extern bfd_target m68kcoff_vec; -extern bfd_target m68kcoffun_vec; -extern bfd_target i386coff_vec; -extern bfd_target i386aout_vec; -extern bfd_target i386linux_vec; -extern bfd_target a29kcoff_big_vec; -extern bfd_target trad_core_vec; -extern bfd_target sco_core_vec; -extern bfd_target aix386_core_vec; -extern bfd_target hpux_core_vec; extern bfd_target rs6000coff_vec; -extern bfd_target h8300coff_vec; -extern bfd_target h8500coff_vec; -extern bfd_target z8kcoff_vec; -extern bfd_target we32kcoff_vec; extern bfd_target shcoff_vec; -extern bfd_target hp300hpux_vec; -extern bfd_target hp300bsd_vec; -extern bfd_target hppa_vec; -/* start-sanitize-v9 */ -extern bfd_target bfd_elf64_sparc_vec; -/* end-sanitize-v9 */ +extern bfd_target sunos_big_vec; +extern bfd_target tekhex_vec; +extern bfd_target we32kcoff_vec; +extern bfd_target z8kcoff_vec; + +/* srec is always included. */ +extern bfd_target srec_vec; +extern bfd_target symbolsrec_vec; + +/* All of the xvecs for core files. */ +extern bfd_target aix386_core_vec; +extern bfd_target hpux_core_vec; +extern bfd_target sco_core_vec; +extern bfd_target trad_core_vec; bfd_target *target_vector[] = { @@ -385,65 +396,107 @@ bfd_target *target_vector[] = { #else /* not SELECT_VECS */ - &i386coff_vec, - &i386aout_vec, - &i386lynx_vec, - &ecoff_little_vec, - &ecoff_big_vec, - &aout_mips_little_vec, +#ifdef DEFAULT_VECTOR + &DEFAULT_VECTOR, +#endif + /* This list is alphabetized to make it easy to compare + with other vector lists -- the decls above and + the case statement in configure.in. + Vectors that don't compile on all systems, or aren't finished, + should have an entry here with #if 0 around it, to show that + it wasn't omitted by mistake. */ + &a29kcoff_big_vec, + &a_out_adobe_vec, +#if 0 /* No one seems to use this. */ &aout_mips_big_vec, - &ieee_vec, +#endif + &aout_mips_little_vec, + &b_out_vec_big_host, + &b_out_vec_little_host, +#if 0 /* No one seems to use this. */ + &bfd_elf32_big_generic_vec, + &bfd_elf32_bigmips_vec, +#endif #if 0 - /* We have no oasys tools anymore, so we can't test any of this - anymore. If you want to test the stuff yourself, go ahead... - steve@cygnus.com - Worse, since there is no magic number for archives, there - can be annoying target mis-matches. */ - &oasys_vec, + &bfd_elf32_hppa_vec, #endif - &sunos_big_vec, + &bfd_elf32_i386_vec, + &bfd_elf32_i860_vec, +#if 0 /* No one seems to use this. */ + &bfd_elf32_little_generic_vec, + &bfd_elf32_littlemips_vec, +#endif + &bfd_elf32_m68k_vec, + &bfd_elf32_m88k_vec, + &bfd_elf32_sparc_vec, +#ifdef BFD64 /* No one seems to use this. */ + &bfd_elf64_big_generic_vec, + &bfd_elf64_little_generic_vec, +#endif +/* start-sanitize-v9 */ +#if 0 + &bfd_elf64_sparc_vec, +#endif +/* end-sanitize-v9 */ #ifdef BFD64 &demo_64_vec, /* Only compiled if host has long-long support */ #endif + &ecoff_big_vec, + &ecoff_little_vec, +#if 0 + &ecoffalpha_little_vec, +#endif &h8300coff_vec, - &z8kcoff_vec, - &m88kbcs_vec, + &h8500coff_vec, #if 0 - &tekhex_vec, + &host_aout_vec, #endif - &icoff_little_vec, + &hp300bsd_vec, + &hp300hpux_vec, +#if defined (HOST_HPPAHPUX) || defined (HOST_HPPABSD) + &hppa_vec, +#endif + &i386aout_vec, + &i386bsd_vec, + &i386coff_vec, +#if 0 + &i386linux_vec, +#endif + &i386lynx_vec, &icoff_big_vec, - &bfd_elf32_sparc_vec, - &bfd_elf32_i386_vec, - &bfd_elf32_m68k_vec, - &bfd_elf32_i860_vec, - &bfd_elf32_m88k_vec, - &bfd_elf32_littlemips_vec, - &bfd_elf32_bigmips_vec, - &bfd_elf32_little_generic_vec, - &bfd_elf32_big_generic_vec, + &icoff_little_vec, + &ieee_vec, + &m68kcoff_vec, + &m68kcoffun_vec, + &m88kbcs_vec, + &newsos3_vec, +#if 0 /* No one seems to use this. */ + &nlm32_big_generic_vec, +#endif &nlm32_i386_vec, +#if 0 /* No one seems to use this. */ &nlm32_little_generic_vec, - &nlm32_big_generic_vec, +#endif #ifdef BFD64 - &bfd_elf64_little_generic_vec, - &bfd_elf64_big_generic_vec, - &nlm64_little_generic_vec, &nlm64_big_generic_vec, + &nlm64_little_generic_vec, +#endif +#if 0 + /* We have no oasys tools anymore, so we can't test any of this + anymore. If you want to test the stuff yourself, go ahead... + steve@cygnus.com + Worse, since there is no magic number for archives, there + can be annoying target mis-matches. */ + &oasys_vec, #endif - &a_out_adobe_vec, - &b_out_vec_little_host, - &b_out_vec_big_host, - &m68kcoff_vec, - &m68kcoffun_vec, - &a29kcoff_big_vec, &rs6000coff_vec, -#if defined (HOST_HPPAHPUX) || defined (HOST_HPPABSD) - &hppa_vec, + &shcoff_vec, + &sunos_big_vec, +#if 0 + &tekhex_vec, #endif - &hp300hpux_vec, - &hp300bsd_vec, &we32kcoff_vec, + &z8kcoff_vec, #endif /* not SELECT_VECS */ @@ -453,18 +506,18 @@ bfd_target *target_vector[] = { /* Add any required traditional-core-file-handler. */ -#ifdef TRAD_CORE - &trad_core_vec, -#endif -#ifdef SCO_CORE - &sco_core_vec, -#endif #ifdef AIX386_CORE &aix386_core_vec, #endif #ifdef HPUX_CORE &hpux_core_vec, #endif +#ifdef SCO_CORE + &sco_core_vec, +#endif +#ifdef TRAD_CORE + &trad_core_vec, +#endif NULL /* end of list marker */ }; |