Files
clang-p2996/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
..
2022-02-06 22:18:35 -08:00
2021-09-03 10:48:06 +02:00
2022-02-06 22:18:35 -08:00
2022-02-06 22:18:35 -08:00