Format:SCE ELF extensions (PlayStation consoles)
| Platforms | Platform:PlayStation 2, Platform:PlayStation Portable, Platform:PlayStation 3, Platform:PlayStation Vita, Platform:PlayStation 4 |
|---|---|
| Magic | 7F 45 4C 46 (ELF) with a Sony e_type |
| On this wiki | Facts · Code · Notes · Topics |
The Sony-specific ELF values (e_type 0xFE00-0xFFA8, program and section header types, OS/ABI 102) used by the PlayStation 2, PSP, PS3, PS Vita and PS4 toolchains, as emulators and homebrew SDKs define them; a quick way to tell which console an ELF is for.
Overview
Every Sony console after the PS1 runs ELF files, but each tags them with a vendor e_type in the range 0xFE00-0xFFFF and adds vendor program/section header types. Reading e_type, e_machine and the OS/ABI byte of the 0x10-byte e_ident is enough to know which console a file belongs to. RPCS3 collects the values in one enum (rpcs3/Crypto/unself.h, lines 17-32); the PS4 loader of shadPS4 uses the 0xFE values with a 64-bit x86-64 ELF.
e_type values
| e_type | Name (RPCS3) | Used by |
|---|---|---|
| 0xFE00 | ET_SCE_EXEC | PS Vita and PS4 executable (PS3 PRX2 per the RPCS3 comment) |
| 0xFE04 | ET_SCE_RELEXEC | PS Vita relocatable module (suprx) |
| 0xFE0C | ET_SCE_STUBLIB | SDK stub library |
| 0xFE10 | ET_SCE_DYNEXEC | PS4 executable with ASLR (eboot.bin once decrypted) |
| 0xFE18 | ET_SCE_DYNAMIC | PS4 shared module (sprx); RPCS3 marks it "?" |
| 0xFF80 | ET_SCE_IOPRELEXEC | PS2 IOP module, see Format:IRX (PlayStation 2 IOP module) |
| 0xFF81 | ET_SCE_IOPRELEXEC2 | IOP relocatable, version 2 |
| 0xFF90 / 0xFF91 | ET_SCE_EERELEXEC / EERELEXEC2 | PS2 Emotion Engine relocatable (ERX) |
| 0xFFA0 | ET_SCE_PSPRELEXEC | PSP module, see Format:PRX (PSP module) |
| 0xFFA4 | ET_SCE_PPURELEXEC | PS3 PPU module (sprx) |
| 0xFFA5 | ET_SCE_ARMRELEXEC | early PS Vita system software (RPCS3 comment: 0.931.010 and earlier) |
| 0xFFA8 | ET_SCE_PSPOVERLAY | RPCS3 comment "?" |
Plain PS2 and PS3 game executables use ET_EXEC (2).
Program and section header types
- PT_SCE_RELA 0x60000000 (Vita/PS4 relocations), PT_SCE_DYNLIBDATA 0x61000000 (PS4 dynamic data), PT_SCE_PROCPARAM 0x61000001, PT_SCE_COMMENT 0x6FFFFF00, PT_SCE_LIBVERSION 0x6FFFFF01.
- PT_SCE_IOPMOD 0x70000080 and PT_SCE_EEMOD 0x70000090 (PS2), PT_SCE_PSPRELA 0x700000A0 / 0x700000A1 (PSP), PT_SCE_PPURELA 0x700000A4 (PS3), PT_SCE_SEGSYM 0x700000A8.
- Section types: SHT_SCE_RELA 0x60000000, SHT_SCE_NID 0x61000001, SHT_SCE_IOPMOD 0x70000080, SHT_SCE_EEMOD 0x70000090, SHT_SCE_PSPRELA 0x700000A0, SHT_SCE_PPURELA 0x700000A4.
- OS/ABI: 102 (ELFOSABI_CELL_LV2) on PS3; 9 (FreeBSD) on PS4 per shadPS4
Elf::IsElfFile.
Recognition recipe
- Read e_type at 0x10 and e_machine at 0x12.
- 0xFF80/0xFF81 with MIPS: PS2 IOP. 0xFF90: PS2 EE. 0xFFA0: PSP. 0xFFA4 with PowerPC64 big endian: PS3. 0xFE00/0xFE04 with ARM: Vita. 0xFE10/0xFE18 with x86-64 (e_machine 0x3E): PS4.
- Files starting with
53 43 45 00(PS3, Vita; see Format:SCE SELF (PS3 and PS Vita)) or4F 15 3D 1D(PS4) are SELF wrappers around such an ELF;7E 50 53 50is the PSP encrypted wrapper.
Unverified: the Vita 0xFE00 versus PS4 0xFE00 split is by e_machine, not by e_type alone.
Sources
RPCS3 rpcs3/Crypto/unself.h (GPL-2.0) and shadPS4 src/core/loader/elf.h (GPL-2.0); PS2 values also in ps2sdk iop/system/udnl/src/include/ELF.h and tools/ps2-irxgen/src/elftypes.h (AFL-2.0).
Code & repositories
- https://github.com/shadps4-emu/shadPS4 @
0ebea15c24253b60f514fc37a348dabc8d0bcb90· license: GPL-2.0
PS4 emulator (GPL-2.0-or-later): src/core/loader/elf.h and elf.cpp show the SELF header and the ELF types, program headers and DT_SCE tags of PS4 executables; src/core/module.cpp loads PT_SCE_DYNLIBDATA and the module/library tables.
Tested on: source read, not run: source read, not run: elf.h, elf.cpp, module.h, module.cpp read from raw files · checked 2026-10-18; last activity 2026-10-18; Note: the latest release ships binaries; the wiki links only the source, never the binaries