summaryrefslogtreecommitdiff
path: root/bfd/cpu-arm.c
diff options
context:
space:
mode:
authorJulian Brown <julian@codesourcery.com>2005-03-30 17:28:23 +0000
committerJulian Brown <julian@codesourcery.com>2005-03-30 17:28:23 +0000
commitc8cf3f684cecb23932e8310bf6143581ce93bd4a (patch)
tree5263e23d5c903717e5cc36ba198a2cdb1362e0e3 /bfd/cpu-arm.c
parent60f8aea71bc99eabcbc346c58c9d9e5aa2c52cd5 (diff)
downloadgdb-c8cf3f684cecb23932e8310bf6143581ce93bd4a.tar.gz
* bfd/bfd-in.h (bfd_is_arm_mapping_symbol_name): Add prototype.binutils-csl-arm-2005q1a
* bfd/bfd-in2.h: Regenerate. * bfd/elf32-arm.c (elf32_arm_is_target_special_symbol): Rename call to bfd_is_arm_mapping_symbol_name. (elf32_arm_output_symbol_hook): Likewise. (arm_elf_find_function): Likewise, and include STT_NOTYPE in test for mapping symbols. (is_arm_mapping_symbol_name): Function moved from here... * bfd/cpu-arm.c (bfd_is_arm_mapping_symbol_name): ...to here, renamed and made global. * gas/config/tc-arm.c (mapping_state): Change documentation in function comment to cross-reference spec instead. Change type of mapping symbols to BSF_NO_TYPE. (arm_adjust_symtab): Don't change type of mapping symbols here. * gas/testsuite/gas/arm/mapping.d: Update expected output. * ld/testsuite/ld-arm/arm-app-abs32.d: Likewise. * ld/testsuite/ld-arm/arm-app.d: Likewise. * ld/testsuite/ld-arm/mixed-app.d: Likewise.
Diffstat (limited to 'bfd/cpu-arm.c')
-rw-r--r--bfd/cpu-arm.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/bfd/cpu-arm.c b/bfd/cpu-arm.c
index cd7c7a65575..8cc52e5ca07 100644
--- a/bfd/cpu-arm.c
+++ b/bfd/cpu-arm.c
@@ -400,3 +400,13 @@ bfd_arm_get_mach_from_notes (bfd *abfd, const char *note_section)
free (buffer);
return bfd_mach_arm_unknown;
}
+
+bfd_boolean
+bfd_is_arm_mapping_symbol_name (const char * name)
+{
+ return (name != NULL)
+ && (name[0] == '$')
+ && ((name[1] == 'a') || (name[1] == 't') || (name[1] == 'd'))
+ && (name[2] == 0);
+}
+