mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-07-27 04:25:12 +00:00
Implementated Extra Cases
Seems working and Detecting Please double check it! PT_INTERP, PT_SCE_COMMENT, PT_SCE_LIBVERSION I've just only Print out the values, no logic behind!
This commit is contained in:
parent
b0d47543ae
commit
261b4ca463
BIN
src/Archívum.zip
BIN
src/Archívum.zip
Binary file not shown.
@ -183,6 +183,27 @@ void Module::LoadModuleToMemory(u32& max_tls_index) {
|
|||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
case PT_INTERP: {
|
||||||
|
LOG_INFO(Core_Linker, "Interpreter Path Segment (NEED IMPLEMENT)");
|
||||||
|
|
||||||
|
const char* interpreter_path = reinterpret_cast<const char*>(base_virtual_addr + elf_pheader[i].p_vaddr);
|
||||||
|
LOG_INFO(Core_Linker, "Interpreter Path: {}", interpreter_path);
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
case PT_SCE_COMMENT: {
|
||||||
|
LOG_INFO(Core_Linker, "SCE Comment Segment (NEED IMPLEMENT)");
|
||||||
|
|
||||||
|
const char* sce_comment = reinterpret_cast<const char*>(base_virtual_addr + elf_pheader[i].p_vaddr);
|
||||||
|
LOG_INFO(Core_Linker, "SCE Comment: {}", sce_comment);
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
case PT_SCE_LIBVERSION: {
|
||||||
|
LOG_INFO(Core_Linker, "SCE Library Version Segment (NEED IMPLEMENT)");
|
||||||
|
|
||||||
|
const char* sce_libvers = reinterpret_cast<const char*>(base_virtual_addr + elf_pheader[i].p_vaddr);
|
||||||
|
LOG_INFO(Core_Linker, "SCE Library Version: {}", sce_libvers);
|
||||||
|
break;
|
||||||
|
}
|
||||||
default:
|
default:
|
||||||
LOG_ERROR(Core_Linker, "Unimplemented type {}", header_type);
|
LOG_ERROR(Core_Linker, "Unimplemented type {}", header_type);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user