[llvm] [BOLT][AArch64] Adds tls relocations support (PR #117465)
Vladislav Khmelevsky via llvm-commits
llvm-commits at lists.llvm.org
Fri Dec 20 00:32:06 PST 2024
================
@@ -480,6 +484,12 @@ static uint64_t extractValueAArch64(uint64_t Type, uint64_t Contents,
Contents &= ~0xffffffffffc003ffU;
return Contents >> (10 - 0);
}
+ case ELF::R_AARCH64_TLSLE_MOVW_TPREL_G0:
----------------
yota9 wrote:
Probably this code is unneeded since non GOT-related TLS relocations are skipped by the bolt in rewriteinstance.cpp: handleRelocation routine, search for Relocation::isTLS(RType) there. So it would just stay as imm value and would be emitted by the bolt with this value. At list it seems these switch-cases could be merged in *MOVW_UABS* relocations handle below
https://github.com/llvm/llvm-project/pull/117465
More information about the llvm-commits
mailing list