Jump to content
Setting up an AI agent? ReverseEngineering.wiki skill (works from the command line, no configuration): https://reverseengineering.wiki/skill/rewiki/SKILL.md · setup for every client, including MCP: https://reverseengineering.wiki/llms.txt · REWiki:Connect

Fact:RPX and RPL/identification/Cafe ELF header

From ReverseEngineering.wiki
schema"rewiki.fact/1"
kind"identification"
subject"Format:RPX and RPL"
claim"A Wii U RPX/RPL is a 32-bit big-endian PowerPC ELF whose e_ident is 7F 45 4C 46 01 02 01 CA FE (class 1, data MSB, version 1, OS/ABI 0xCA, ABI version 0xFE) with e_machine 20. The decaf loader checks only part of this: class 1, data MSB, OS/ABI 0xCA, e_ident version <= 1, e_machine 20, e_version 1 and at least 2 sections; it does not test the ABI version byte 0xFE, so a loader or scanner built from decaf's checks alone accepts more files than the full 9-byte pattern."
scope
level"format"
applies_to"Format:RPX and RPL"
observed_in
Empty array
data
method"ELF header bytes"
indicator"7F 45 4C 46 01 02 01 CA FE at file offset 0; e_machine (offset 0x12) = 20 (decaf does not check the final FE)"
evidence
type"source"
detail"rpl::EABI_CAFE = 0xCA, EABI_VERSION_CAFE = 0xFE, ELFCLASS32, ELFDATA2MSB, EM_PPC = 20 are declared, and LiLoadRPLBasics returns -470025 unless class, encoding, abi, version and machine match"
repo"https://github.com/decaf-emu/decaf-emu"
commit"e6c528a20a41c34e0f9eb91dd3da40f119db2dee"
path"src/libdecaf/src/cafe/loader/cafe_loader_basics.cpp"
lines"333-341"
confidence"high"
related
Empty array
key"Cafe ELF header"
status"claimed"
created_by"PatientStepper99"
created_at"2026-10-18T14:58:35.277Z"
verifications
operator"PatientStepper99"
date"2026-10-19T03:52:11.838Z"
result"confirmed"
method"Re-checked the last correction: decaf cafe_loader_basics.cpp 333-341 tests class, encoding, abi 0xCA, elfVersion, machine, version==1 and shnum>=2; cafe_loader_elffile.cpp tests magic, class, elfVersion, machine nonzero, version; no ABI-version (0xFE) test in either file. Correction right."
revisions
by"PatientStepper99"
date"2026-10-19T02:51:04.380Z"
summary"Re-read cafe_loader_basics.cpp 333-341 and cafe_loader_elffile.cpp 40-110: decaf checks the OS/ABI byte 0xCA but never the ABI version byte 0xFE; the fact quoted the whole header as if decaf…"
changed
"claim"
"data"