mirror of
https://github.com/yuzu-emu/breakpad
synced 2024-11-22 09:43:34 +00:00
Add EM_RISCV as recognized value for ELF e_machine
`dump_syms` fails to write symbol file without knowing how to convert the ELF `e_machine` field to a string. Use "riscv" as the value because ELF `e_machine` does not distinguish between 32 bit and 64 bit RISC-V. Test: run `dump_syms` on the libc++ that's shipped with the Clang toolchain, or any other riscv binary: `./dump_syms -r -n libc++.so -o Fuchsia <clang_path>/lib/riscv64-unknown-fuchsia/libc++.so.2.0` Bug: fuchsia:124084 Change-Id: Ic04db96ec3d3d484350bdd0b90c9dfb70d7f7eb2 Reviewed-on: https://chromium-review.googlesource.com/c/breakpad/breakpad/+/4376828 Reviewed-by: Mike Frysinger <vapier@chromium.org>
This commit is contained in:
parent
c179ddaa58
commit
b0dc1f3529
1 changed files with 1 additions and 0 deletions
|
@ -1022,6 +1022,7 @@ const char* ElfArchitecture(const typename ElfClass::Ehdr* elf_header) {
|
|||
case EM_SPARC: return "sparc";
|
||||
case EM_SPARCV9: return "sparcv9";
|
||||
case EM_X86_64: return "x86_64";
|
||||
case EM_RISCV: return "riscv";
|
||||
default: return NULL;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue