[JITLink] Add fixup value range check
authorluxufan <932494295@qq.com>
Tue, 4 Jan 2022 12:18:19 +0000 (20:18 +0800)
committerluxufan <932494295@qq.com>
Tue, 4 Jan 2022 14:45:15 +0000 (22:45 +0800)
commit17af06ba8005d6d14b0ac79ece01ecb028de9f90
treefeb91f662a030d954d87c71817f2e582952a81cb
parent9290ccc3c1a17a7874de020656db38183a20f6b0
[JITLink] Add fixup value range check

This patch makes jitlink to report an out of range error when the fixup value out of range

Reviewed By: lhames

Differential Revision: https://reviews.llvm.org/D107328
llvm/lib/ExecutionEngine/JITLink/ELF_riscv.cpp
llvm/test/ExecutionEngine/JITLink/RISCV/ELF_pc_indirect.s