0e71e4955c
bfd-in.h, bfdio.c, coff-alpha.c, coff-arm.c, coff-h8300.c, coff-i860.c, coff-mcore.c, coff-or32.c, coff-ppc.c, coff-sh.c, coff-sparc.c, coffcode.h, coffgen.c, cofflink.c, cpu-cris.c, cpu-h8500.c, cpu-ns32k.c, ecoff.c, ecofflink.c, elf.c, elf32-dlx.c, elf32-fr30.c, elf32-frv.c, elf32-hppa.c, elf32-i860.c, elf32-ip2k.c, elf32-m32r.c, elf32-sh.c, elf32-v850.c, elf64-mips.c, elf64-sparc.c, elflink.c, i386aout.c, i386msdos.c, i386os9k.c, ieee.c, mach-o.c, nlm32-sparc.c, oasys.c, opncls.c, pdp11.c, pe-mips.c, peXXigen.c, pef.c, peicode.h, reloc.c, riscix.c, section.c, simple.c, som.c, sparclynx.c, targets.c, vms-misc.c, vms-tir.c, xsym.c, doc/chew.c, hosts/delta68.h, hosts/vaxbsd.h: Remove #if 0'd code throughout. Similarly, collapse #if 1'd code.
59 lines
1.7 KiB
C
59 lines
1.7 KiB
C
/* BFD library support routines for the H8/500 architecture.
|
|
Copyright 1993, 1995, 2000, 2001, 2002, 2003
|
|
Free Software Foundation, Inc.
|
|
Hacked by Steve Chamberlain of Cygnus Support.
|
|
|
|
This file is part of BFD, the Binary File Descriptor library.
|
|
|
|
This program is free software; you can redistribute it and/or modify
|
|
it under the terms of the GNU General Public License as published by
|
|
the Free Software Foundation; either version 2 of the License, or
|
|
(at your option) any later version.
|
|
|
|
This program is distributed in the hope that it will be useful,
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
GNU General Public License for more details.
|
|
|
|
You should have received a copy of the GNU General Public License
|
|
along with this program; if not, write to the Free Software
|
|
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
|
|
|
|
#include "bfd.h"
|
|
#include "sysdep.h"
|
|
#include "libbfd.h"
|
|
|
|
static bfd_boolean scan_mach
|
|
PARAMS ((const struct bfd_arch_info *, const char *));
|
|
|
|
static bfd_boolean
|
|
scan_mach (info, string)
|
|
const struct bfd_arch_info *info ATTRIBUTE_UNUSED;
|
|
const char *string;
|
|
{
|
|
if (strcmp (string,"h8/500") == 0)
|
|
return TRUE;
|
|
if (strcmp (string,"H8/500") == 0)
|
|
return TRUE;
|
|
if (strcmp (string,"h8500") == 0)
|
|
return TRUE;
|
|
if (strcmp (string,"H8500") == 0)
|
|
return TRUE;
|
|
return FALSE;
|
|
}
|
|
|
|
const bfd_arch_info_type bfd_h8500_arch =
|
|
{
|
|
16, /* 16 bits in a word */
|
|
24, /* 24 bits in an address */
|
|
8, /* 8 bits in a byte */
|
|
bfd_arch_h8500,
|
|
0, /* only 1 machine */
|
|
"h8500", /* arch_name */
|
|
"h8500", /* printable name */
|
|
1,
|
|
TRUE, /* the default machine */
|
|
bfd_default_compatible,
|
|
scan_mach,
|
|
0,
|
|
};
|