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:
parent
f8628f94b8
commit
0b0ea19d12
5 changed files with 63 additions and 1 deletions
|
@ -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 "(?)";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue