diff --git a/bfd/cpu-m32c.c b/bfd/cpu-m32c.c index aa2e28d..dde8c61 100644 --- a/bfd/cpu-m32c.c +++ b/bfd/cpu-m32c.c @@ -1,5 +1,5 @@ /* BFD support for the M16C/M32C processors. - Copyright (C) 2004, 2005, 2007 Free Software Foundation, Inc. + Copyright (C) 2004, 2005, 2007, 2009 Free Software Foundation, Inc. This file is part of BFD, the Binary File Descriptor library. @@ -22,6 +22,16 @@ #include "bfd.h" #include "libbfd.h" +static bfd_boolean +scan (const struct bfd_arch_info *info, const char *string) +{ + /* First test for an exact match. */ + if (strcasecmp (string, info->printable_name) == 0) + return TRUE; + + return FALSE; +} + static const bfd_arch_info_type arch_info_struct[] = { { @@ -35,7 +45,7 @@ static const bfd_arch_info_type arch_info_struct[] = 3, /* section align power */ FALSE, /* the default ? */ bfd_default_compatible, /* architecture comparison fn */ - bfd_default_scan, /* string to architecture convert fn */ + scan, /* string to architecture convert fn */ NULL /* next in list */ }, }; @@ -52,6 +62,6 @@ const bfd_arch_info_type bfd_m32c_arch = 4, /* Section align power. */ TRUE, /* The default ? */ bfd_default_compatible, /* Architecture comparison fn. */ - bfd_default_scan, /* String to architecture convert fn. */ + scan, /* String to architecture convert fn. */ &arch_info_struct[0], /* Next in list. */ };