From: John Gilmore Date: Tue, 1 Oct 1991 19:46:47 +0000 (+0000) Subject: * Makefile.in, configure.in, targets.c, elf.c: Add preliminary X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=3f85ebce789ad99d73fd389751267bfc50acea5c;p=binutils-gdb.git * Makefile.in, configure.in, targets.c, elf.c: Add preliminary ELF support good enough for GDB. * configure.in, config/h-amix, config/t-m68k-elf: Handle m68k-cbm-svr4 host and target. --- diff --git a/bfd/ChangeLog b/bfd/ChangeLog index b7fa25bd3d3..233aee57894 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,12 @@ +Tue Oct 1 12:29:44 1991 John Gilmore (gnu at cygnus.com) + + * Makefile.in, configure.in, targets.c, elf.c: Add preliminary + ELF support good enough for GDB. + * configure.in, config/h-amix, config/t-m68k-elf: Handle + m68k-cbm-svr4 host and target. + * config/t-m68k-coff, t-m88k-coff, t-m88k-aout: Make files nonempty + so `diff' and `patch' can cope. + Tue Oct 1 11:24:31 1991 Steve Chamberlain (steve at cygnus.com) * archures.c: removed texinfo error diff --git a/bfd/Makefile.in b/bfd/Makefile.in index 4d25568b52c..3f790bfedee 100644 --- a/bfd/Makefile.in +++ b/bfd/Makefile.in @@ -48,7 +48,7 @@ BFD_MACHINES=cpu-h8300.o cpu-i960.o cpu-sparc.o cpu-m68k.o cpu-m88k.o \ BFD_BACKENDS = oasys.o ieee.o srec.o \ aout64.o aout32.o demo64.o sunos.o newsos3.o bout.o \ - icoff.o amdcoff.o m68kcoff.o i386coff.o m88k-bcs.o ecoff.o + icoff.o amdcoff.o m68kcoff.o i386coff.o m88k-bcs.o ecoff.o elf.o OPTIONAL_BACKENDS = trad-core.o @@ -61,11 +61,10 @@ CFILES = libbfd.c opncls.c bfd.c archive.c targets.c cache.c archures.c \ i386coff.c aout64.c aout32.c sunos.c demo64.c icoff.c srec.c \ oasys.c ieee.c m68kcoff.c amdcoff.c \ format.c section.c core.c syms.c reloc.c init.c \ - m88k-bcs.c ecoff.c trad-core.c newsos3.c bout.c \ - cpu-h8300.c cpu-i960.c cpu-sparc.c cpu-m68k.c cpu-m88k.c \ + m88k-bcs.c ecoff.c trad-core.c newsos3.c bout.c elf.c \ + cpu-h8300.c cpu-i960.c cpu-sparc.c cpu-m68k.c cpu-m88k.c \ cpu-vax.c cpu-mips.c cpu-a29k.c cpu-i386.o - STAGESTUFF = $(TARGETLIB) $(OFILES) all: $(TARGETLIB) diff --git a/bfd/targets.c b/bfd/targets.c index 9bec279707c..1e422741a48 100644 --- a/bfd/targets.c +++ b/bfd/targets.c @@ -34,7 +34,7 @@ through a pointer into calls to the back end routines. When a file is opened with @code{bfd_openr}, its format and target are unknown. BFD uses various mechanisms to determine how to interpret the -file. The operatios performed are: +file. The operations performed are: @itemize @bullet @item First a BFD is created by calling the internal routine @@ -122,6 +122,7 @@ of a file. $ enum target_flavour_enum { $ bfd_target_aout_flavour_enum, $ bfd_target_coff_flavour_enum, +$ bfd_target_elf_flavour_enum, $ bfd_target_ieee_flavour_enum, $ bfd_target_oasys_flavour_enum, $ bfd_target_srec_flavour_enum} flavour; @@ -285,6 +286,8 @@ extern bfd_target b_out_vec_little_host; extern bfd_target b_out_vec_big_host; extern bfd_target icoff_little_vec; extern bfd_target icoff_big_vec; +extern bfd_target elf_little_vec; +extern bfd_target elf_big_vec; extern bfd_target ieee_vec; extern bfd_target oasys_vec; extern bfd_target m88k_bcs_vec; @@ -316,6 +319,8 @@ extern bfd_target DEFAULT_VECTOR; #define ECOFF_BIG_VEC ecoff_big_vec #define ICOFF_LITTLE_VEC icoff_little_vec #define ICOFF_BIG_VEC icoff_big_vec +#define ELF_LITTLE_VEC elf_little_vec +#define ELF_BIG_VEC elf_big_vec #define ZB_OUT_VEC_LITTLE_HOST b_out_vec_little_host #define ZB_OUT_VEC_BIG_HOST b_out_vec_big_host #define SUNOS_VEC_BIG_HOST sunos_big_vec @@ -381,6 +386,14 @@ bfd_target *target_vector[] = { &ICOFF_BIG_VEC, #endif /* ICOFF_BIG_VEC */ +#ifdef ELF_LITTLE_VEC + &ELF_LITTLE_VEC, +#endif /* ELF_LITTLE_VEC */ + +#ifdef ELF_BIG_VEC + &ELF_BIG_VEC, +#endif /* ELF_BIG_VEC */ + #ifdef B_OUT_VEC_LITTLE_HOST &B_OUT_VEC_LITTLE_HOST, #endif /* B_OUT_VEC_LITTLE_HOST */