Revert "riscv/kexec: handle R_RISCV_ADD16 and R_RISCV_SUB16 relocation types"

This reverts commit d7e62ea401.

upstream commit a39416d859
This commit is contained in:
Xiaoguang Xing 2024-10-25 10:54:29 +08:00
parent 51795ce79e
commit 872ae6a368
1 changed files with 0 additions and 6 deletions

View File

@ -456,12 +456,6 @@ int arch_kexec_apply_relocations_add(struct purgatory_info *pi,
case R_RISCV_SUB32:
*(u32 *)loc -= val;
break;
case R_RISCV_ADD16:
*(u16 *)loc += val;
break;
case R_RISCV_SUB16:
*(u16 *)loc -= val;
break;
/* It has been applied by R_RISCV_PCREL_HI20 sym */
case R_RISCV_PCREL_LO12_I:
case R_RISCV_ALIGN: