1
1
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:
Alex Fan 2022-07-28 14:04:21 +10:00
parent d10b129b13
commit 68bd00caa7
No known key found for this signature in database
GPG Key ID: D9F19E80BECCF35A

View File

@ -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;