summaryrefslogtreecommitdiff
path: root/bfd/cpu-arm.c
diff options
context:
space:
mode:
authorDaniel Jacobowitz <dan@debian.org>2006-04-11 15:54:53 +0000
committerDaniel Jacobowitz <dan@debian.org>2006-04-11 15:54:53 +0000
commit059e2a423c04846cebf4e8b5e98de210dbacec1f (patch)
tree7238ceba6fe53ffbe1cf74309d068a7bc9aea1ee /bfd/cpu-arm.c
parent53ad9794210c1d60f720859ff6015817b7b92cea (diff)
downloadgdb-059e2a423c04846cebf4e8b5e98de210dbacec1f.tar.gz
Backport:
2006-03-09 Paul Brook <paul@codesourcery.com> * bfd/cpu-arm.c (bfd_is_arm_mapping_symbol_name): Recognise additional mapping symbols.
Diffstat (limited to 'bfd/cpu-arm.c')
-rw-r--r--bfd/cpu-arm.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/bfd/cpu-arm.c b/bfd/cpu-arm.c
index 3f56e8f9a62..a28a1f9e8fc 100644
--- a/bfd/cpu-arm.c
+++ b/bfd/cpu-arm.c
@@ -404,9 +404,12 @@ bfd_arm_get_mach_from_notes (bfd *abfd, const char *note_section)
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. */
return (name != NULL)
&& (name[0] == '$')
- && ((name[1] == 'a') || (name[1] == 't') || (name[1] == 'd'))
- && (name[2] == 0);
+ && ((name[1] == 'a') || (name[1] == 't') || (name[1] == 'd')
+ || (name[1] == 'm') || (name[1] == 'f') || (name[1] == 'p'))
+ && (name[2] == 0 || name[2] == '.');
}