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

Commit

Permalink
Add support for regular ELFs (used in old modules)
Browse files Browse the repository at this point in the history
  • Loading branch information
CreepNT committed May 29, 2022
1 parent e85b559 commit 81b19ce
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/main/java/vita/elf/VitaElfHeader.java
Original file line number Diff line number Diff line change
Expand Up @@ -34,13 +34,17 @@ public ExecutableInfo(int _e_type, String _typeName, String _name, boolean _relo
public final boolean relocatable;
}

public static final short ET_REL = (short)0x0001;
public static final short ET_EXEC = (short)0x0002;
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_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_RELEXEC
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 81b19ce

Please sign in to comment.