diff options
author | Steve Chamberlain <sac@cygnus> | 1993-04-27 01:17:32 +0000 |
---|---|---|
committer | Steve Chamberlain <sac@cygnus> | 1993-04-27 01:17:32 +0000 |
commit | 9faacb925f0b526a5c79c886c711f2826e1ecbb7 (patch) | |
tree | 06caa461dc95129a7b0918846d05c7bfbba0278b /bfd | |
parent | ed173a7696deb9417b59db73e105bfae8a17ab7a (diff) | |
download | gdb-9faacb925f0b526a5c79c886c711f2826e1ecbb7.zip gdb-9faacb925f0b526a5c79c886c711f2826e1ecbb7.tar.gz gdb-9faacb925f0b526a5c79c886c711f2826e1ecbb7.tar.bz2 |
Support for Hitachi SH
Diffstat (limited to 'bfd')
-rw-r--r-- | bfd/.Sanitize | 2 | ||||
-rw-r--r-- | bfd/ChangeLog | 5 | ||||
-rw-r--r-- | bfd/Makefile.in | 12 | ||||
-rw-r--r-- | bfd/coffcode.h | 17 | ||||
-rw-r--r-- | bfd/configure.in | 8 |
5 files changed, 36 insertions, 8 deletions
diff --git a/bfd/.Sanitize b/bfd/.Sanitize index 6a1eb5c..2a5001b 100644 --- a/bfd/.Sanitize +++ b/bfd/.Sanitize @@ -55,6 +55,7 @@ coff-m88k.c coff-mips.c coff-msym.c coff-rs6000.c +coff-sh.c coff-we32k.c coff-z8k.c coffcode.h @@ -97,6 +98,7 @@ cpu-hppa.c cpu-i960.c cpu-m88k.c cpu-rs6000.c +cpu-sh.c cpu-we32k.c cpu-z8k.c hp300bsd.c diff --git a/bfd/ChangeLog b/bfd/ChangeLog index 0d9977b..5cf6bf2 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,8 @@ +Mon Apr 26 13:24:43 1993 Steve Chamberlain (sac@thepub.cygnus.com) + + * Makefile.in, archures.c, coffcode.h, targets.c: Support for + Hitachi SH. + Mon Apr 26 13:55:42 1993 Jim Kingdon (kingdon@cygnus.com) * trad-core.c (trad_unix_core_file_p): Check the file size. diff --git a/bfd/Makefile.in b/bfd/Makefile.in index ab0bdaa..809935a 100644 --- a/bfd/Makefile.in +++ b/bfd/Makefile.in @@ -75,7 +75,7 @@ BFD_LIBS = libbfd.o opncls.o bfd.o archive.o targets.o cache.o \ BFD_MACHINES = cpu-h8300.o cpu-i960.o cpu-sparc.o cpu-m68k.o cpu-m88k.o \ cpu-vax.o cpu-mips.o cpu-a29k.o cpu-i386.o cpu-rs6000.o cpu-hppa.o \ - cpu-z8k.o cpu-we32k.o cpu-h8500.o + cpu-z8k.o cpu-we32k.o cpu-h8500.o cpu-alpha.o cpu-sh.o BFD_BACKENDS = aout32.o sunos.o newsos3.o mipsbsd.o aout-adobe.o \ i386aout.o i386bsd.o i386linux.o \ @@ -85,7 +85,7 @@ BFD_BACKENDS = aout32.o sunos.o newsos3.o mipsbsd.o aout-adobe.o \ coff-mips.o coff-msym.o \ elf32.o elf32-sparc.o elf32-i386.o elf32-i860.o elf32-m68k.o \ bout.o \ - hppa.o oasys.o ieee.o srec.o stab-syms.o + hppa.o oasys.o ieee.o srec.o stab-syms.o coff-alpha.o coff-sh.o OPTIONAL_BACKENDS = trad-core.o @@ -124,7 +124,8 @@ CFILES = libbfd.c opncls.c bfd.c archive.c targets.c cache.c \ cpu-m88k.c cpu-vax.c cpu-mips.c cpu-a29k.c cpu-i386.c \ cpu-rs6000.c coff-h8300.c hppa.c cpu-hppa.c cpu-we32k.c reloc16.c \ mipsbsd.c \ - elf32.c elf32-sparc.c elf32-i386.c elf32-i860.c elf32-m68k.c + elf32.c elf32-sparc.c elf32-i386.c elf32-i860.c elf32-m68k.c \ + coff-alpha.c cpu-alpha.c STAGESTUFF = $(TARGETLIB) $(OFILES) @@ -138,7 +139,7 @@ check: installcheck: info dvi : force - @$(MAKE) subdir_do DO=info "DODIRS=$(SUBDIRS)" $(FLAGS_TO_PASS) + @$(MAKE) subdir_do DO=$@ "DODIRS=$(SUBDIRS)" $(FLAGS_TO_PASS) clean-info: @$(MAKE) subdir_do DO=clean-info "DODIRS=$(SUBDIRS)" $(FLAGS_TO_PASS) @@ -325,7 +326,8 @@ bfd.ps: libbfd.o : libbfd.c $(INCDIR)/bfd.h $(INCDIR)/obstack.h libbfd.h opncls.o : opncls.c $(INCDIR)/bfd.h $(INCDIR)/obstack.h libbfd.h -bfd.o : bfd.c $(INCDIR)/bfd.h $(INCDIR)/obstack.h libbfd.h +bfd.o : bfd.c $(INCDIR)/bfd.h $(INCDIR)/obstack.h libbfd.h \ + $(INCDIR)/coff/sym.h libecoff.h archive.o : archive.c $(INCDIR)/bfd.h $(INCDIR)/obstack.h libbfd.h \ $(INCDIR)/aout/ar.h $(INCDIR)/aout/ranlib.h targets.o : targets.c $(INCDIR)/bfd.h $(INCDIR)/obstack.h libbfd.h diff --git a/bfd/coffcode.h b/bfd/coffcode.h index ad89efe..1913e35 100644 --- a/bfd/coffcode.h +++ b/bfd/coffcode.h @@ -342,7 +342,7 @@ DEFUN(sec_to_styp_flags, (sec_name, sec_flags), } else if (!strcmp (sec_name, _LIT)) { - stype_flags = STYP_LIT; + styp_flags = STYP_LIT; #endif /* _LIT */ } @@ -921,6 +921,13 @@ DEFUN (coff_set_arch_mach_hook, (abfd, filehdr), break; #endif +#ifdef SHMAGIC + case SHMAGIC: + arch = bfd_arch_sh; + machine = 0; + break; +#endif + #ifdef H8500MAGIC case H8500MAGIC: arch = bfd_arch_h8500; @@ -1117,6 +1124,14 @@ DEFUN(coff_set_flags,(abfd, magicp, flagsp), return true; break; #endif + +#ifdef SHMAGIC + case bfd_arch_sh: + *magicp = SHMAGIC; + return true; + break; +#endif + #ifdef H8500MAGIC case bfd_arch_h8500: *magicp = H8500MAGIC; diff --git a/bfd/configure.in b/bfd/configure.in index 88d6692..3270999 100644 --- a/bfd/configure.in +++ b/bfd/configure.in @@ -34,12 +34,15 @@ fi # convention, else the table becomes a real mess to understand and maintain. case "${target}" in + alpha-*-*) bfd_target=alphaosf ;; a29k-*-ebmon) bfd_target=a29k-coff ;; a29k-*-udi) bfd_target=a29k-coff ;; a29k-*-aout) bfd_target=a29k-aout ;; a29k-*-coff) bfd_target=a29k-coff ;; a29k-*-sym1) bfd_target=a29k-coff ;; h8300-*-*) bfd_target=h8300-coff ;; + h8500-*-*) bfd_target=h8500-coff ;; + sh-*-*) bfd_target=sh-coff ;; hppa*-*-bsd) bfd_target=hppabsd ;; hppa*-*-hpux) bfd_target=hppahpux ;; i[34]86-*-sysv4*) bfd_target=i386-elf ;; @@ -63,10 +66,11 @@ case "${target}" in m68*-ericsson-*) bfd_target=m68k-aout ;; m68*-netx-*) bfd_target=m68k-aout ;; m88k-*-*) bfd_target=m88k-coff ;; - mips-big-*) bfd_target=irix3 ;; + mips-big-*) bfd_target=bigmips ;; mips-dec-bsd*) bfd_target=mipsdecbsd ;; mips-dec-*) bfd_target=decstation ;; - mips-sgi-*) bfd_target=irix3 ;; + mips-*-ecoff) bfd_target=bigmips ;; + mips-sgi-*) bfd_target=bigmips ;; rs6000-*-*) bfd_target=rs6000 ;; sparc-*-solaris2*) bfd_target=sparc-elf ;; sparc-*-sysv4*) bfd_target=sparc-elf ;; |