e_type ET_SCE_DYNAMIC seems to be valid as well

This commit is contained in:
georgemoralis 2023-10-19 13:01:20 +03:00
parent e3effe8c0a
commit 90d24c3a3c

View file

@ -206,8 +206,8 @@ bool Elf::isElfFile() const {
return false;
}
if (m_elf_header->e_type != ET_SCE_DYNEXEC && m_elf_header->e_type != ET_SCE_DYNAMIC) {
printf("ERROR:e_type expected 0xFE10 OR 0xFE18 is (%04x)\n", m_elf_header->e_type);
if (m_elf_header->e_type != ET_SCE_DYNEXEC&& m_elf_header->e_type != ET_SCE_DYNAMIC&& m_elf_header->e_type != ET_SCE_EXEC) {
printf("ERROR:e_type expected 0xFE10 OR 0xFE18 OR 0xfe00 is (%04x)\n", m_elf_header->e_type);
return false;
}