1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-14 08:54:58 +00:00

LibELF+readelf: Add support for RISC-V dynamic relocation types

This commit is contained in:
Sönke Holz 2024-02-10 20:24:28 +01:00 committed by Andrew Kaster
parent f8628f94b8
commit 0b0ea19d12
5 changed files with 63 additions and 1 deletions

View file

@ -197,6 +197,10 @@ static char const* object_relocation_type_to_string(Elf_Half machine, Elf_Word t
switch (type) {
__ENUMERATE_AARCH64_DYNAMIC_RELOCS(ENUMERATE_RELOCATION)
}
} else if (machine == EM_RISCV) {
switch (type) {
__ENUMERATE_RISCV_DYNAMIC_RELOCS(ENUMERATE_RELOCATION)
}
}
#undef ENUMERATE_RELOCATION
return "(?)";