aboutsummaryrefslogtreecommitdiff
path: root/bfd/coffcode.h
diff options
context:
space:
mode:
authorSteve Chamberlain <sac@cygnus>1993-04-27 01:17:32 +0000
committerSteve Chamberlain <sac@cygnus>1993-04-27 01:17:32 +0000
commit9faacb925f0b526a5c79c886c711f2826e1ecbb7 (patch)
tree06caa461dc95129a7b0918846d05c7bfbba0278b /bfd/coffcode.h
parented173a7696deb9417b59db73e105bfae8a17ab7a (diff)
downloadgdb-9faacb925f0b526a5c79c886c711f2826e1ecbb7.zip
gdb-9faacb925f0b526a5c79c886c711f2826e1ecbb7.tar.gz
gdb-9faacb925f0b526a5c79c886c711f2826e1ecbb7.tar.bz2
Support for Hitachi SH
Diffstat (limited to 'bfd/coffcode.h')
-rw-r--r--bfd/coffcode.h17
1 files changed, 16 insertions, 1 deletions
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;