* arm-tdep.c (arm_elf_make_msymbol_special): Use ARM_SYM_BRANCH_TYPE

instead of checking for STT_ARM_TFUNC symbol type.
This commit is contained in:
Ulrich Weigand 2011-03-25 21:05:23 +00:00
parent d0289b45c2
commit 467d42c48d
2 changed files with 7 additions and 4 deletions

View File

@ -1,3 +1,8 @@
2011-03-25 Ulrich Weigand <ulrich.weigand@linaro.org>
* arm-tdep.c (arm_elf_make_msymbol_special): Use ARM_SYM_BRANCH_TYPE
instead of checking for STT_ARM_TFUNC symbol type.
2011-03-25 Tom Tromey <tromey@redhat.com>
* linespec.c (symbol_found): Restore line-based result for

View File

@ -7793,10 +7793,8 @@ coff_sym_is_thumb (int val)
static void
arm_elf_make_msymbol_special(asymbol *sym, struct minimal_symbol *msym)
{
/* Thumb symbols are of type STT_LOPROC, (synonymous with
STT_ARM_TFUNC). */
if (ELF_ST_TYPE (((elf_symbol_type *)sym)->internal_elf_sym.st_info)
== STT_LOPROC)
if (ARM_SYM_BRANCH_TYPE (&((elf_symbol_type *)sym)->internal_elf_sym)
== ST_BRANCH_TO_THUMB)
MSYMBOL_SET_SPECIAL (msym);
}