mirror of
https://github.com/rui314/mold.git
synced 2024-10-04 16:48:04 +03:00
[ELF][RISCV] add missing R_RISCV_SET32 in EhFrameSection
Signed-off-by: Alex Fan <alex.fan.q@gmail.com>
This commit is contained in:
parent
d10b129b13
commit
68bd00caa7
@ -183,6 +183,9 @@ void EhFrameSection<E>::apply_reloc(Context<E> &ctx, const ElfRel<E> &rel,
|
||||
case R_RISCV_SET16:
|
||||
*(ul16 *)loc = val;
|
||||
return;
|
||||
case R_RISCV_SET32:
|
||||
*(ul32 *)loc = val;
|
||||
return;
|
||||
case R_RISCV_32_PCREL:
|
||||
*(ul32 *)loc = val - this->shdr.sh_addr - offset;
|
||||
return;
|
||||
|
Loading…
Reference in New Issue
Block a user