[JITLink][ELF][AArch64] Implement R_AARCH64_PREL32 and R_AARCH64_PREL64.
authorSunho Kim <ksunhokim123@gmail.com>
Wed, 8 Jun 2022 18:13:03 +0000 (11:13 -0700)
committerLang Hames <lhames@gmail.com>
Wed, 8 Jun 2022 19:14:05 +0000 (12:14 -0700)
commit5d5183b1983822e6c4b9dc1156cf4bd73efd4786
treef18c3544b28a081065775d4c97e933972f804c6a
parent7d293744a89a21759744c147159343046b8bd924
[JITLink][ELF][AArch64] Implement R_AARCH64_PREL32 and R_AARCH64_PREL64.

This patch implements R_AARCH64_PREL64 and R_AARCH64_PREL32 relocations that is
used in eh frame pointers. The test case utlizes obj2yaml tool to create an
artifical eh frame that generates related relocation types.

Reviewed By: lhames

Differential Revision: https://reviews.llvm.org/D127058
llvm/lib/ExecutionEngine/JITLink/ELF_aarch64.cpp
llvm/test/ExecutionEngine/JITLink/AArch64/ELF_aarch64_ehframe.test [new file with mode: 0644]