diff options
author | Paul Brook <paul@codesourcery.com> | 2006-03-09 23:05:59 +0000 |
---|---|---|
committer | Paul Brook <paul@codesourcery.com> | 2006-03-09 23:05:59 +0000 |
commit | 39f1f3c9db90c0e1f37d69c9991ab28b615308a7 (patch) | |
tree | ef5239ed06512d86cebbfc9e0abdf8d57b44f177 /bfd/cpu-arm.c | |
parent | 0236d580de85c9dd7e659026c1810a2b8ee2e004 (diff) | |
download | gdb-39f1f3c9db90c0e1f37d69c9991ab28b615308a7.tar.gz |
2006-03-09 Paul Brook <paul@codesourcery.com>
bfd/
* cpu-arm.c (bfd_is_arm_mapping_symbol_name): Recognise additional
mapping symbols.
gas/testsuite/
* gas/arm/nomapping.d: New test.
* gas/arm/nomapping.s: New test.
Diffstat (limited to 'bfd/cpu-arm.c')
-rw-r--r-- | bfd/cpu-arm.c | 7 |
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] == '.'); } |