00001 /* 00002 * Copyright 2003, 2004, 2005, 2006 PathScale, Inc. All Rights Reserved. 00003 */ 00004 00005 /* BFD library support routines for the H8/500 architecture. 00006 Copyright 1993, 1995, 1999, 2000, 2001, 2002, 2003, 2005 00007 Free Software Foundation, Inc. 00008 Hacked by Steve Chamberlain of Cygnus Support. 00009 00010 This file is part of BFD, the Binary File Descriptor library. 00011 00012 This program is free software; you can redistribute it and/or modify 00013 it under the terms of the GNU General Public License as published by 00014 the Free Software Foundation; either version 2 of the License, or 00015 (at your option) any later version. 00016 00017 This program is distributed in the hope that it will be useful, 00018 but WITHOUT ANY WARRANTY; without even the implied warranty of 00019 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00020 GNU General Public License for more details. 00021 00022 You should have received a copy of the GNU General Public License 00023 along with this program; if not, write to the Free Software 00024 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ 00025 00026 #include "bfd.h" 00027 #include "sysdep.h" 00028 #include "libbfd.h" 00029 00030 static bfd_boolean scan_mach 00031 PARAMS ((const struct bfd_arch_info *, const char *)); 00032 00033 static bfd_boolean 00034 scan_mach (info, string) 00035 const struct bfd_arch_info *info ATTRIBUTE_UNUSED; 00036 const char *string; 00037 { 00038 if (strcmp (string,"h8/500") == 0) 00039 return TRUE; 00040 if (strcmp (string,"H8/500") == 0) 00041 return TRUE; 00042 if (strcmp (string,"h8500") == 0) 00043 return TRUE; 00044 if (strcmp (string,"H8500") == 0) 00045 return TRUE; 00046 return FALSE; 00047 } 00048 00049 const bfd_arch_info_type bfd_h8500_arch = 00050 { 00051 16, /* 16 bits in a word */ 00052 24, /* 24 bits in an address */ 00053 8, /* 8 bits in a byte */ 00054 bfd_arch_h8500, 00055 0, /* only 1 machine */ 00056 "h8500", /* arch_name */ 00057 "h8500", /* printable name */ 00058 1, 00059 TRUE, /* the default machine */ 00060 bfd_default_compatible, 00061 scan_mach, 00062 0, 00063 };
1.5.6