Commit 9d0cb6d0 authored by chenmiao's avatar chenmiao Committed by Stafford Horne
Browse files

openrisc: Add R_OR1K_32_PCREL relocation type module support



To ensure the proper functioning of the jump_label test module, this patch
adds support for the R_OR1K_32_PCREL relocation type for any modules. The
implementation calculates the PC-relative offset by subtracting the
instruction location from the target value and stores the result at the
specified location.

Signed-off-by: default avatarchenmiao <chenmiao.ku@gmail.com>
Signed-off-by: default avatarStafford Horne <shorne@gmail.com>
parent 4735037b
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment