llvm-project/lld/ELF/Arch
Hafiz Abid Qadeer fb9c5c3dce [lld][AMDGPU] Handle R_AMDGPU_REL16 relocation.
This patch is a followup patch to https://reviews.llvm.org/D105760 which adds this relocation. This handles the relocation in lld.

The s_branch family of instruction does the following:
PC = PC + signext(simm * 4) + 4

so we we do the opposite on the target address before writing it in the instruction stream.

Reviewed By: MaskRay

Differential Revision: https://reviews.llvm.org/D105761
2021-07-13 20:41:11 +01:00
..
AArch64.cpp [ELF][AArch64] Write addends for TLSDESC relocations with -z rel 2021-07-09 10:41:41 +01:00
AMDGPU.cpp [lld][AMDGPU] Handle R_AMDGPU_REL16 relocation. 2021-07-13 20:41:11 +01:00
ARM.cpp [ELF] Check the Elf_Rel addends for dynamic relocations 2021-07-09 10:41:40 +01:00
AVR.cpp [ELF][AVR] Add explicit relocation types to getRelExpr 2021-05-12 12:38:27 -07:00
Hexagon.cpp [ELF] Rename R_TLS to R_TPREL and R_NEG_TLS to R_TPREL_NEG. NFC 2020-12-18 08:24:42 -08:00
MSP430.cpp [ELF] Use namespace qualifiers (lld:: or elf::) instead of `namespace lld { namespace elf {` 2020-05-15 08:49:53 -07:00
Mips.cpp [ELF] Check the Elf_Rel addends for dynamic relocations 2021-07-09 10:41:40 +01:00
MipsArchTree.cpp [lib/Object] - Refine interface of ELFFile<ELFT>. NFCI. 2020-09-15 11:38:31 +03:00
PPC.cpp [ELF] Support R_PPC_ADDR24 (ba foo; bla foo) 2021-01-17 00:02:13 -08:00
PPC64.cpp [LLD][PowerPC] Fix bug in PC-Relative initial exec 2021-03-22 13:15:44 -05:00
PPCInsns.def [LLD][PowerPC] Implement GOT to PC-Rel relaxation 2020-08-17 09:36:09 -05:00
RISCV.cpp [ELF] Implement RISCV::getImplicitAddend() 2021-07-09 10:41:40 +01:00
SPARCV9.cpp [ELF] Rename R_TLS to R_TPREL and R_NEG_TLS to R_TPREL_NEG. NFC 2020-12-18 08:24:42 -08:00
X86.cpp [ELF] Check the Elf_Rel addends for dynamic relocations 2021-07-09 10:41:40 +01:00
X86_64.cpp [ELF] Write R_X86_64_IRELATIVE addends with -z rel 2021-07-09 10:41:40 +01:00