]> Git Repo - binutils.git/blobdiff - bfd/elf.c
* Makefile.am (elf32-h8300.lo): New target.
[binutils.git] / bfd / elf.c
index 4e6d6ef0299fb750220df1e3ae0117eb901e8626..f03e3a1e73cbad9faf9f43d6549f849c5cf261e5 100644 (file)
--- a/bfd/elf.c
+++ b/bfd/elf.c
@@ -3451,6 +3451,24 @@ prep_headers (abfd)
       i_ehdrp->e_machine = EM_OPENRISC;
       break;
       /* Also note that EM_M32, AT&T WE32100 is unknown to bfd.  */
+    case bfd_arch_h8300:
+      switch (bfd_get_mach (abfd))
+       {
+       default:
+       case bfd_mach_h8300:
+         i_ehdrp->e_machine = EM_H8_300;
+         break;
+       case bfd_mach_h8300h:
+         i_ehdrp->e_machine = EM_H8_300H;
+         break;
+       case bfd_mach_h8300s:
+         i_ehdrp->e_machine = EM_H8S;
+         break;
+       }
+      break;
+    case bfd_arch_h8500:
+      i_ehdrp->e_machine = EM_H8_500;
+      break;
     default:
       i_ehdrp->e_machine = EM_NONE;
     }
This page took 0.028842 seconds and 4 git commands to generate.