diff options
Diffstat (limited to 'bfd/cpu-arm.c')
-rw-r--r-- | bfd/cpu-arm.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/bfd/cpu-arm.c b/bfd/cpu-arm.c index 853a118..6d77e12 100644 --- a/bfd/cpu-arm.c +++ b/bfd/cpu-arm.c @@ -210,6 +210,15 @@ scan (const struct bfd_arch_info *info, const char *string) if (strcasecmp (string, info->printable_name) == 0) return true; + /* If there is a prefix of "arm:" then skip it. */ + const char * colon; + if ((colon = strchr (string, ':')) != NULL) + { + if (strncasecmp (string, "arm", colon - string) != 0) + return false; + string = colon + 1; + } + /* Next check for a processor name instead of an Architecture name. */ for (i = sizeof (processors) / sizeof (processors[0]); i--;) { |