summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2000-08-22 21:02:06 +0000
committerNick Clifton <nickc@redhat.com>2000-08-22 21:02:06 +0000
commitda7ddf25b4c01bb8e3c6c0d684b193ad37203698 (patch)
treea395e6a3f7808bd6858b758ac2611bcee1361600
parent0e743e3edc6ff69b4b8c9f36c7c572510b7219e7 (diff)
downloadgdb-da7ddf25b4c01bb8e3c6c0d684b193ad37203698.tar.gz
Fix typo and code omission preventing the detection of w65 binaries
-rw-r--r--bfd/ChangeLog5
-rw-r--r--bfd/coff-w65.c2
-rw-r--r--bfd/coffcode.h6
3 files changed, 12 insertions, 1 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index e052850d18f..2957e59e98c 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -1,3 +1,8 @@
+2000-08-22 Doug Kwan <dkwan@transmeta.com>
+
+ * coff-w65.c (CREATE_LITTLE_COFF_TARGET): Fix typo.
+ * coffcode.h (coff_set_flags): Add detection of w65 architecture.
+
2000-04-14 Matthew Green <mrg@cygnus.com>
* config.bfd: Add NetBSD/sparc64 support.
diff --git a/bfd/coff-w65.c b/bfd/coff-w65.c
index 0379bfbc325..c82d4d7844b 100644
--- a/bfd/coff-w65.c
+++ b/bfd/coff-w65.c
@@ -401,4 +401,4 @@ h8300_reloc16_extra_cases (abfd, link_info, link_order, reloc, data, src_ptr,
bfd_coff_reloc16_get_relocated_section_contents
#define coff_bfd_relax_section bfd_coff_reloc16_relax_section
-CREATE_LITTLE_COFF_TARGET_VEC (w65_vec, "coff-w95", BFD_IS_RELAXABLE, 0, '_', NULL)
+CREATE_LITTLE_COFF_TARGET_VEC (w65_vec, "coff-w65", BFD_IS_RELAXABLE, 0, '_', NULL)
diff --git a/bfd/coffcode.h b/bfd/coffcode.h
index 8193a2116ca..73081a76796 100644
--- a/bfd/coffcode.h
+++ b/bfd/coffcode.h
@@ -2582,6 +2582,12 @@ coff_set_flags (abfd, magicp, flagsp)
return true;
#endif
+#ifdef W65MAGIC
+ case bfd_arch_w65:
+ *magicp = W65MAGIC;
+ return true;
+#endif
+
default: /* Unknown architecture */
/* return false; -- fall through to "return false" below, to avoid
"statement never reached" errors on the one below. */