summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Jacobowitz <dan@debian.org>2006-05-04 18:15:21 +0000
committerDaniel Jacobowitz <dan@debian.org>2006-05-04 18:15:21 +0000
commit9a5f050955ed8964c27b09b345b2b8439d362f5a (patch)
tree3fb8ac8713b6ec257aac4f5bad85b186a6923cf5
parente518853312d11ede8f7e59899c7be2dbc5d899ce (diff)
downloadbinutils-redhat-9a5f050955ed8964c27b09b345b2b8439d362f5a.tar.gz
* bfd/cpu-arm.c (bfd_is_arm_mapping_symbol_name): Accept more
mapping symbols.
-rw-r--r--bfd/ChangeLog5
-rw-r--r--bfd/cpu-arm.c6
2 files changed, 8 insertions, 3 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index fbba5b424a..70a6227817 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -1,3 +1,8 @@
+2006-05-04 Daniel Jacobowitz <dan@codesourcery.com>
+
+ * bfd/cpu-arm.c (bfd_is_arm_mapping_symbol_name): Accept more
+ mapping symbols.
+
2006-05-04 Ben Elliston <bje@au.ibm.com>
* coff-or32.c (bfd_section_from_shdr): Remove unused local
diff --git a/bfd/cpu-arm.c b/bfd/cpu-arm.c
index a28a1f9e8f..0f0da06097 100644
--- a/bfd/cpu-arm.c
+++ b/bfd/cpu-arm.c
@@ -405,11 +405,11 @@ bfd_boolean
bfd_is_arm_mapping_symbol_name (const char * name)
{
/* The ARM compiler outputs several obsolete forms. Recognize them
- in addition to the standard $a, $t and $d. */
+ in addition to the standard $a, $t and $d. We are somewhat loose
+ in what we accept here, since the full set is not documented. */
return (name != NULL)
&& (name[0] == '$')
- && ((name[1] == 'a') || (name[1] == 't') || (name[1] == 'd')
- || (name[1] == 'm') || (name[1] == 'f') || (name[1] == 'p'))
+ && (name[1] >= 'a' && name[1] <= 'z')
&& (name[2] == 0 || name[2] == '.');
}