Fix detection of thumb-elf function symbols
This commit is contained in:
parent
da5328aeaf
commit
49fe88644c
|
@ -1,3 +1,10 @@
|
||||||
|
Fri Sep 4 19:42:59 1998 Nick Clifton <nickc@cygnus.com>
|
||||||
|
|
||||||
|
* arm-dis.c (print_insn_big_arm): Detect Thumb symbols in elf
|
||||||
|
object files.
|
||||||
|
(print_insn_little_arm): Detect Thumb symbols in elf object
|
||||||
|
files.
|
||||||
|
|
||||||
Sat Aug 29 22:24:09 1998 Richard Henderson <rth@cygnus.com>
|
Sat Aug 29 22:24:09 1998 Richard Henderson <rth@cygnus.com>
|
||||||
|
|
||||||
* alpha-dis.c (print_insn_alpha): Use the machine type to
|
* alpha-dis.c (print_insn_alpha): Use the machine type to
|
||||||
|
|
|
@ -741,11 +741,8 @@ print_insn_big_arm (pc, info)
|
||||||
else if (bfd_asymbol_flavour (*info->symbols) == bfd_target_elf_flavour)
|
else if (bfd_asymbol_flavour (*info->symbols) == bfd_target_elf_flavour)
|
||||||
{
|
{
|
||||||
es = *(elf_symbol_type **)(info->symbols);
|
es = *(elf_symbol_type **)(info->symbols);
|
||||||
is_thumb = (es->internal_elf_sym.st_other == C_THUMBEXT
|
is_thumb = ELF_ST_TYPE (es->internal_elf_sym.st_info) ==
|
||||||
|| es->internal_elf_sym.st_other == C_THUMBSTAT
|
STT_ARM_TFUNC;
|
||||||
|| es->internal_elf_sym.st_other == C_THUMBLABEL
|
|
||||||
|| es->internal_elf_sym.st_other == C_THUMBEXTFUNC
|
|
||||||
|| es->internal_elf_sym.st_other == C_THUMBSTATFUNC);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -826,14 +823,10 @@ print_insn_little_arm (pc, info)
|
||||||
else if (bfd_asymbol_flavour (*info->symbols) == bfd_target_elf_flavour)
|
else if (bfd_asymbol_flavour (*info->symbols) == bfd_target_elf_flavour)
|
||||||
{
|
{
|
||||||
es = *(elf_symbol_type **)(info->symbols);
|
es = *(elf_symbol_type **)(info->symbols);
|
||||||
is_thumb = (es->internal_elf_sym.st_other == C_THUMBEXT
|
is_thumb = ELF_ST_TYPE (es->internal_elf_sym.st_info) ==
|
||||||
|| es->internal_elf_sym.st_other == C_THUMBSTAT
|
STT_ARM_TFUNC;
|
||||||
|| es->internal_elf_sym.st_other == C_THUMBLABEL
|
|
||||||
|| es->internal_elf_sym.st_other == C_THUMBEXTFUNC
|
|
||||||
|| es->internal_elf_sym.st_other == C_THUMBSTATFUNC);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
info->bytes_per_chunk = 4;
|
info->bytes_per_chunk = 4;
|
||||||
info->display_endian = BFD_ENDIAN_LITTLE;
|
info->display_endian = BFD_ENDIAN_LITTLE;
|
||||||
|
|
Loading…
Reference in New Issue