Skip to content
This repository has been archived by the owner on Jul 10, 2023. It is now read-only.

Commit

Permalink
Allow loading of ET_CORE ELF files
Browse files Browse the repository at this point in the history
Fixes faps-coredump core dumps not being loadable unless edited.
  • Loading branch information
CreepNT committed Jun 23, 2022
1 parent 644d7ba commit 4275bf3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/main/java/vita/elf/VitaElfHeader.java
Original file line number Diff line number Diff line change
Expand Up @@ -36,13 +36,15 @@ public ExecutableInfo(int _e_type, String _typeName, String _name, boolean _relo

public static final short ET_REL = (short)0x0001;
public static final short ET_EXEC = (short)0x0002;
public static final short ET_CORE = (short)0x0004;
public static final short ET_SCE_EXEC = (short)0xFE00;
public static final short ET_SCE_RELEXEC = (short)0xFE04;
public static final short ET_SCE_PSP2RELEXEC = (short)0xFFA5;

public static final Map<Short, ExecutableInfo> EXECUTABLE_TYPES = Map.of(
ET_REL, new ExecutableInfo(ET_REL, "ET_REL", "Standard relocatable ELF", true),
ET_EXEC, new ExecutableInfo(ET_EXEC, "ET_EXEC", "Standard executable ELF", false),
ET_CORE, new ExecutableInfo(ET_CORE, "ET_CORE", "Standard ELF corefile", false),
ET_SCE_EXEC, new ExecutableInfo(ET_SCE_EXEC, "ET_SCE_RELEXEC", "SCE Executable", false),
ET_SCE_RELEXEC, new ExecutableInfo(ET_SCE_RELEXEC, "ET_SCE_RELEXEC", "SCE Relocatable Executable", true),
ET_SCE_PSP2RELEXEC, new ExecutableInfo(ET_SCE_PSP2RELEXEC, "ET_SCE_PSP2RELEXEC", "PSP2 Relocatable Executable", true) //Guessed name - present in old modules
Expand Down

0 comments on commit 4275bf3

Please sign in to comment.