[Git][ghc/ghc][wip/supersven/riscv64-ncg] Add R_RISCV_JAL encoding
Sven Tennie (@supersven)
gitlab at gitlab.haskell.org
Sun Feb 11 10:07:21 UTC 2024
Sven Tennie pushed to branch wip/supersven/riscv64-ncg at Glasgow Haskell Compiler / GHC
Commits:
a036c7da by Sven Tennie at 2024-02-11T11:06:50+01:00
Add R_RISCV_JAL encoding
- - - - -
1 changed file:
- rts/linker/elf_reloc_riscv64.c
Changes:
=====================================
rts/linker/elf_reloc_riscv64.c
=====================================
@@ -189,6 +189,10 @@ bool encodeAddendRISCV64(Section *section, Elf_Rel *rel, int64_t addend) {
setUType((inst_t *)P, addend);
break;
}
+ case R_RISCV_JAL: {
+ setJType((inst_t *)P, addend);
+ break;
+ }
case R_RISCV_ADD8:
write8le((uint8_t *)P, read8le((uint8_t *)P) + addend);
break;
View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/a036c7daee3023064f9217e6389e943206231a1b
--
View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/a036c7daee3023064f9217e6389e943206231a1b
You're receiving this email because of your account on gitlab.haskell.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/ghc-commits/attachments/20240211/18878bfe/attachment.html>
More information about the ghc-commits
mailing list