llvm-project/llvm/lib/ExecutionEngine/JITLink
luxufan 9920943ea2 [JITLink] Fix the incorrect relocation behavior for R_RISCV_BRANCH
In D116573, the relocation behavior of R_RISCV_BRANCH didn't consider that branch instruction like 'bge' has a branch target address which is given as a PC-relative offset, sign-extend and multiplied by 2.
Although the target address is a 12-bits number, acctually its range is [-4096, 4094].

This patch fix it.

Differential Revision: https://reviews.llvm.org/D118151
2022-02-07 14:34:19 +08:00
..
CMakeLists.txt [ORC][JITLink] Add dependence on OrcShared to JITLink. 2022-01-10 19:25:46 +11:00
DefineExternalSectionStartAndEndSymbols.h Re-apply "[JITLink] Update JITLink to use ExecutorAddr rather... " with fixes. 2022-01-06 17:22:21 +11:00
EHFrameSupport.cpp [llvm] Use = default (NFC) 2022-02-06 22:18:35 -08:00
EHFrameSupportImpl.h Re-apply "[JITLink] Update JITLink to use ExecutorAddr rather... " with fixes. 2022-01-06 17:22:21 +11:00
ELF.cpp [JITLink] Add initial Aarch64 support 2021-09-03 10:48:06 +02:00
ELFLinkGraphBuilder.cpp [llvm] Use = default (NFC) 2022-02-06 22:18:35 -08:00
ELFLinkGraphBuilder.h reapply de87238295 "[JITLink] Add anonymous symbols in LinkGraph..." 2022-01-22 20:50:36 +08:00
ELF_aarch64.cpp [NFC][ORC][AArch64] use isInt<N> to replace fitsRangeSignedInt on aarch64 2022-01-26 23:26:31 +08:00
ELF_riscv.cpp [JITLink] Fix the incorrect relocation behavior for R_RISCV_BRANCH 2022-02-07 14:34:19 +08:00
ELF_x86_64.cpp [JITLink][ELF] Support duplicated section names from object file 2022-01-18 08:38:28 -08:00
JITLink.cpp [llvm] Use = default (NFC) 2022-02-06 22:18:35 -08:00
JITLinkGeneric.cpp [llvm] Use = default (NFC) 2022-02-06 22:18:35 -08:00
JITLinkGeneric.h [llvm] Remove unused forward declarations (NFC) 2022-01-07 20:00:34 -08:00
JITLinkMemoryManager.cpp [llvm] Use = default (NFC) 2022-02-06 22:18:35 -08:00
MachO.cpp [llvm][clang][NFC] updates inline licence info 2021-08-11 02:48:53 +00:00
MachOLinkGraphBuilder.cpp [llvm] Use = default (NFC) 2022-02-06 22:18:35 -08:00
MachOLinkGraphBuilder.h Re-apply "[JITLink] Update JITLink to use ExecutorAddr rather... " with fixes. 2022-01-06 17:22:21 +11:00
MachO_arm64.cpp Reapply 253ce92844 "[JITLink][AArch64] Add support for splitting.." with fixes. 2022-01-14 10:00:20 +11:00
MachO_x86_64.cpp Re-apply "[JITLink] Update JITLink to use ExecutorAddr rather... " with fixes. 2022-01-06 17:22:21 +11:00
MemoryFlags.cpp Re-apply e50aea58d5, "Major JITLinkMemoryManager refactor". with fixes. 2021-10-11 21:39:00 -07:00
PerGraphGOTAndPLTStubsBuilder.h Re-apply "[JITLink] Update JITLink to use ExecutorAddr rather... " with fixes. 2022-01-06 17:22:21 +11:00
aarch64.cpp [JITLink] Add initial Aarch64 support 2021-09-03 10:48:06 +02:00
riscv.cpp reapply de87238295 "[JITLink] Add anonymous symbols in LinkGraph..." 2022-01-22 20:50:36 +08:00
x86_64.cpp Re-apply "[JITLink] Update JITLink to use ExecutorAddr rather... " with fixes. 2022-01-06 17:22:21 +11:00