Revert "riscv/kexec: handle R_RISCV_ADD16 and R_RISCV_SUB16 relocation types"
This reverts commitd7e62ea401
. upstream commita39416d859
This commit is contained in:
parent
51795ce79e
commit
872ae6a368
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue