summaryrefslogtreecommitdiff
path: root/bfd
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2000-08-22 20:11:36 +0000
committerNick Clifton <nickc@redhat.com>2000-08-22 20:11:36 +0000
commit61262d0af53f551d1454719846266c8b57a4adbe (patch)
tree1488e8f7acb509a7faaf36fb653a7095c3b07600 /bfd
parentb1919d85dd86b84507c16d6d7329870915a8f6da (diff)
downloadgdb-61262d0af53f551d1454719846266c8b57a4adbe.tar.gz
Fix bugs detecting w65 architecture.
Diffstat (limited to 'bfd')
-rw-r--r--bfd/ChangeLog5
-rw-r--r--bfd/coff-w65.c2
-rw-r--r--bfd/coffcode.h12
3 files changed, 15 insertions, 4 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index 1733311f90b..9808b4155a8 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-08-22 H.J. Lu <hjl@gnu.org>
* elf-bfd.h (elf_link_hash_table): Add runpath.
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 a122057df22..2750ad7d820 100644
--- a/bfd/coffcode.h
+++ b/bfd/coffcode.h
@@ -2716,9 +2716,15 @@ coff_set_flags (abfd, magicp, flagsp)
return true;
#endif
- default: /* Unknown architecture */
- /* return false; -- fall through to "return false" below, to avoid
- "statement never reached" errors on the one below. */
+#ifdef W65MAGIC
+ case bfd_arch_w65:
+ *magicp = W65MAGIC;
+ return true;
+#endif
+
+ default: /* Unknown architecture. */
+ /* Fall through to "return false" below, to avoid
+ "statement never reached" errors on the one below. */
break;
}