[llvm-dev] decyphering exception info on ARM
Peter Smith via llvm-dev
llvm-dev at lists.llvm.org
Tue Apr 9 06:10:14 PDT 2019
Hello Carlo,
The R_ARM_TARGET2 is a target dependent relocation, its meaning is
defined by the platform that you are executing on.. The details are in
https://reviews.llvm.org/D25684 in particular there is a link to the
GNU documentation that explains the value you want for various
platforms https://sourceware.org/binutils/docs/ld/ARM.html#ARM and the
equivalent relocation that you can look up in ELF for the ARM
architecture.
Peter
On Tue, 9 Apr 2019 at 14:19, Carlo Kok via llvm-dev
<llvm-dev at lists.llvm.org> wrote:
>
> When LLVM generates typeinfo for arm (raspiberry pi elf) it generates:
>
> .long _rtti_tc__1sException(target2) @ TypeInfo 1
>
> target2 seems to be some curious form of GOT_PCREL but not exactly. How can I read this at runtime? The value in memory itself does not seem to have any relation to the real address of _rtti_tc__1sException
> _______________________________________________
> LLVM Developers mailing list
> llvm-dev at lists.llvm.org
> https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev
More information about the llvm-dev
mailing list