Fix System Z ELF asm.arch & bits (#17936)

This commit is contained in:
Liumeo 2020-11-18 22:43:14 -05:00 committed by GitHub
parent 66aa8ee645
commit da50d751b7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 2 deletions

View File

@ -58,7 +58,7 @@ RAsmPlugin r_asm_plugin_sysz = {
.desc = "SystemZ CPU disassembler",
.license = "BSD",
.arch = "sysz",
.bits = 32,
.bits = 32 | 64,
.endian = R_SYS_ENDIAN_BIG,
.fini = the_end,
.disassemble = &disassemble,

View File

@ -2103,7 +2103,9 @@ char* Elf_(r_bin_elf_get_arch)(ELFOBJ *bin) {
case EM_V850:
return strdup ("v850");
case EM_IA_64:
return strdup("ia64");
return strdup ("ia64");
case EM_S390:
return strdup ("sysz");
default: return strdup ("x86");
}
}