/* BFD library support routines for the Hitachi-SH architecture.
- Copyright (C) 1993, 97, 1998, 2000 Free Software Foundation, Inc.
+ Copyright 1993, 1994, 1997, 1998, 2000, 2001
+ Free Software Foundation, Inc.
Hacked by Steve Chamberlain of Cygnus Support.
This file is part of BFD, the Binary File Descriptor library.
#include "sysdep.h"
#include "libbfd.h"
+static boolean scan_mach
+ PARAMS ((const struct bfd_arch_info *, const char *));
+
static boolean
scan_mach (info, string)
const struct bfd_arch_info *info;
#define SH3_DSP_NEXT &arch_info_struct[4]
#define SH3E_NEXT &arch_info_struct[5]
#define SH4_NEXT NULL
+#undef SH4_NEXT
+#define SH4_NEXT &arch_info_struct[6]
+#define SH64_NEXT NULL
static const bfd_arch_info_type arch_info_struct[] =
{
scan_mach,
SH4_NEXT
},
+ {
+ 64, /* 64 bits in a word */
+ 64, /* 64 bits in an address */
+ 8, /* 8 bits in a byte */
+ bfd_arch_sh,
+ bfd_mach_sh5,
+ "sh", /* arch_name */
+ "sh5", /* printable name */
+ 1,
+ false, /* not the default */
+ bfd_default_compatible,
+ scan_mach,
+ SH64_NEXT
+ },
};
const bfd_arch_info_type bfd_sh_arch =