* bfd/bfd-in.h (bfd_is_arm_mapping_symbol_name): Rename from

bfd_elf32_is_arm_mapping_symbol_name.
	* bfd/bfd-in2.h: Regenerate.
	* bfd/cpu-arm.c (bfd_is_arm_mapping_symbol_name): Rename from
	bfd_elf32_is_arm_mapping_symbol_name.
	* bfd/elf32-arm.c (elf32_arm_is_target_special_symbol): Rename
	bfd_elf32_is_arm_mapping_symbol_name to bfd_is_arm_mapping_symbol_name.
	(arm_elf_find_function): Likewise.
	(elf32_arm_output_symbol_hook): Likewise.
	* gas/config/tc-arm.c (arm_adjust_symtab): Likewise.
This commit is contained in:
Julian Brown 2005-03-30 17:19:29 +00:00
parent 9d2da7ca8d
commit 05ea83ed21
7 changed files with 24 additions and 7 deletions

View file

@ -1,3 +1,15 @@
2005-03-30 Julian Brown <julian@codesourcery.com>
* bfd-in.h (bfd_is_arm_mapping_symbol_name): Rename from
bfd_elf32_is_arm_mapping_symbol_name.
* bfd-in2.h: Regenerate.
* cpu-arm.c (bfd_is_arm_mapping_symbol_name): Rename from
bfd_elf32_is_arm_mapping_symbol_name.
* elf32-arm.c (elf32_arm_is_target_special_symbol): Rename
bfd_elf32_is_arm_mapping_symbol_name to bfd_is_arm_mapping_symbol_name.
(arm_elf_find_function): Likewise.
(elf32_arm_output_symbol_hook): Likewise.
2005-03-30 Julian Brown <julian@codesourcery.com> 2005-03-30 Julian Brown <julian@codesourcery.com>
* bfd-in.h (bfd_elf32_is_arm_mapping_symbol_name): Add prototype. * bfd-in.h (bfd_elf32_is_arm_mapping_symbol_name): Add prototype.

View file

@ -825,7 +825,7 @@ extern bfd_boolean bfd_elf32_arm_add_glue_sections_to_bfd
(bfd *, struct bfd_link_info *); (bfd *, struct bfd_link_info *);
/* ELF ARM mapping symbol support */ /* ELF ARM mapping symbol support */
extern bfd_boolean bfd_elf32_is_arm_mapping_symbol_name extern bfd_boolean bfd_is_arm_mapping_symbol_name
(const char * name); (const char * name);
/* ARM Note section processing. */ /* ARM Note section processing. */

View file

@ -832,7 +832,7 @@ extern bfd_boolean bfd_elf32_arm_add_glue_sections_to_bfd
(bfd *, struct bfd_link_info *); (bfd *, struct bfd_link_info *);
/* ELF ARM mapping symbol support */ /* ELF ARM mapping symbol support */
extern bfd_boolean bfd_elf32_is_arm_mapping_symbol_name extern bfd_boolean bfd_is_arm_mapping_symbol_name
(const char * name); (const char * name);
/* ARM Note section processing. */ /* ARM Note section processing. */

View file

@ -402,7 +402,7 @@ bfd_arm_get_mach_from_notes (bfd *abfd, const char *note_section)
} }
bfd_boolean bfd_boolean
bfd_elf32_is_arm_mapping_symbol_name (const char * name) bfd_is_arm_mapping_symbol_name (const char * name)
{ {
return (name != NULL) return (name != NULL)
&& (name[0] == '$') && (name[0] == '$')

View file

@ -4710,7 +4710,7 @@ elf32_arm_check_relocs (bfd *abfd, struct bfd_link_info *info,
static bfd_boolean static bfd_boolean
elf32_arm_is_target_special_symbol (bfd * abfd ATTRIBUTE_UNUSED, asymbol * sym) elf32_arm_is_target_special_symbol (bfd * abfd ATTRIBUTE_UNUSED, asymbol * sym)
{ {
return bfd_elf32_is_arm_mapping_symbol_name (sym->name); return bfd_is_arm_mapping_symbol_name (sym->name);
} }
/* This is a copy of elf_find_function() from elf.c except that /* This is a copy of elf_find_function() from elf.c except that
@ -4748,7 +4748,7 @@ arm_elf_find_function (bfd * abfd ATTRIBUTE_UNUSED,
case STT_NOTYPE: case STT_NOTYPE:
/* Skip $a and $t symbols. */ /* Skip $a and $t symbols. */
if ((q->symbol.flags & BSF_LOCAL) if ((q->symbol.flags & BSF_LOCAL)
&& bfd_elf32_is_arm_mapping_symbol_name (q->symbol.name)) && bfd_is_arm_mapping_symbol_name (q->symbol.name))
continue; continue;
/* Fall through. */ /* Fall through. */
if (bfd_get_section (&q->symbol) == section if (bfd_get_section (&q->symbol) == section
@ -6077,7 +6077,7 @@ elf32_arm_output_symbol_hook (struct bfd_link_info *info,
return TRUE; return TRUE;
/* We only want mapping symbols. */ /* We only want mapping symbols. */
if (! bfd_elf32_is_arm_mapping_symbol_name (name)) if (! bfd_is_arm_mapping_symbol_name (name))
return TRUE; return TRUE;
mapcount = ++(elf32_arm_section_data (input_sec)->mapcount); mapcount = ++(elf32_arm_section_data (input_sec)->mapcount);

View file

@ -1,3 +1,8 @@
2005-03-30 Julian Brown <julian@codesourcery.com>
* config/tc-arm.c (arm_adjust_symtab): Rename
bfd_elf32_is_arm_mapping_symbol_name to bfd_is_arm_mapping_symbol_name.
2005-03-30 Julian Brown <julian@codesourcery.com> 2005-03-30 Julian Brown <julian@codesourcery.com>
* config/tc-arm.c (mapping_state): Change documentation in function * config/tc-arm.c (mapping_state): Change documentation in function

View file

@ -13669,7 +13669,7 @@ arm_adjust_symtab (void)
elf_sym = elf_symbol (symbol_get_bfdsym (sym)); elf_sym = elf_symbol (symbol_get_bfdsym (sym));
bind = ELF_ST_BIND (elf_sym->internal_elf_sym.st_info); bind = ELF_ST_BIND (elf_sym->internal_elf_sym.st_info);
if (! bfd_elf32_is_arm_mapping_symbol_name (elf_sym->symbol.name)) if (! bfd_is_arm_mapping_symbol_name (elf_sym->symbol.name))
{ {
/* If it's a .thumb_func, declare it as so, /* If it's a .thumb_func, declare it as so,
otherwise tag label as .code 16. */ otherwise tag label as .code 16. */