Skip to content
Snippets Groups Projects
Commit 00c44b76 authored by Jason Hiser's avatar Jason Hiser :tractor:
Browse files

mips?!

parent 00d39f77
No related branches found
No related tags found
No related merge requests found
Pipeline #5466 passed
......@@ -1156,24 +1156,15 @@ void FileIR_t::setArchitecture()
e_ident[4] == ELFCLASS64 ? 64 :
throw std::invalid_argument("Unknown ELF class");
const auto e_type =
elf_big_endian ? be16toh(hdr_union.ehdr32.e_type) :
elf_big_endian ? le16toh(hdr_union.ehdr32.e_type) :
throw invalid_argument("Unknown endianness");
const auto e_type = elf_big_endian ? be16toh(hdr_union.ehdr32.e_type) : le16toh(hdr_union.ehdr32.e_type) ;
const auto ft =
e_type == ET_DYN ? IRDB_SDK::adftELFSO :
e_type == ET_EXEC ? IRDB_SDK::adftELFEXE :
throw std::invalid_argument("Unknown file type");
const auto e_machine32 =
elf_big_endian ? be16toh(hdr_union.ehdr32.e_machine) :
elf_big_endian ? le16toh(hdr_union.ehdr32.e_machine) :
throw invalid_argument("Unknown endianness");
const auto e_machine64 =
elf_big_endian ? be16toh(hdr_union.ehdr64.e_machine) :
elf_big_endian ? le16toh(hdr_union.ehdr64.e_machine) :
throw invalid_argument("Unknown endianness");
const auto e_machine32 = elf_big_endian ? be16toh(hdr_union.ehdr32.e_machine) : le16toh(hdr_union.ehdr32.e_machine) ;
const auto e_machine64 = elf_big_endian ? be16toh(hdr_union.ehdr64.e_machine) : le16toh(hdr_union.ehdr64.e_machine) ;
const auto mt =
e_machine32 == EM_MIPS ? IRDB_SDK::admtMips32 :
e_machine32 == EM_386 ? IRDB_SDK::admtI386 :
......
Subproject commit d06241b4990d3a764c5cdae7feec1fff8409c23a
Subproject commit 8712133942f8bd8d8aae4b2b374b644c5442c989
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment