mirror of
https://github.com/morluto/rea.git
synced 2026-11-21 22:15:50 +00:00
An ARM STT_FUNC or STT_GNU_IFUNC value for Thumb code is the code address with bit 0 set (AAELF32 symbol values), while an FDE initial location is the even code address. inspect_elf_unwind_ranges matched symbol values to FDE starts exactly, so a Thumb function described by an .eh_frame FDE lost its name: the range was named by a local label or mapping symbol from .symtab, or had no name when only .dynsym was left. On ARM EABI such FDEs come mostly from hand-written assembly with .cfi directives; compiled code unwinds through .ARM.exidx. Clear bit 0 of ARM function and IFUNC symbol values before the lookup, as the ELF initializer and Android JNI readers already do. Mapping symbols and other machines keep their values.