RISC-V support

With some addition to macros the project is able to build on riscv64
machine.

plthook has added RISC-V support upstream [1]. However upstream has
changed their code quite a bit, so I just modified the current vendored
version.

[1]: https://github.com/kubo/plthook/commit/a564738a4707fc5eb4d388b9e97eeab51b8c9d56
This commit is contained in:
Eric Long
2023-09-29 17:26:11 +01:00
committed by Baldur Karlsson
parent 2886f4a282
commit f36d8a3b23
7 changed files with 25 additions and 9 deletions
+3
View File
@@ -95,6 +95,9 @@
#elif defined __powerpc__
#define R_JUMP_SLOT R_PPC_JMP_SLOT
#define Elf_Plt_Rel Elf_Rela
#elif defined __riscv
#define R_JUMP_SLOT R_RISCV_JUMP_SLOT
#define Elf_Plt_Rel Elf_Rela
#elif 0 /* disabled because not tested */ && (defined __sparcv9 || defined __sparc_v9__)
#define R_JUMP_SLOT R_SPARC_JMP_SLOT
#define Elf_Plt_Rel Elf_Rela