From ReverseEngineering.wiki
| schema | "rewiki.fact/1" |
|---|
| kind | "struct" |
|---|
| subject | "Format:RPX and RPL" |
|---|
| claim | "The file-info section (type 0x80000004, last section) is 0x60 bytes in version 0xCAFE0402: version, text/data/load/temp sizes and alignments, trampoline adjust, SDA bases, stack size, filename offset, flags, heap size, tag offset, minimum toolkit version, compression level, trampoline addition, padding, Cafe SDK version and revision, TLS module index and align shift, runtime file-info size. Older versions 0xCAFE0300 and 0xCAFE0401 are 0x40 bytes." |
|---|
| scope | | level | "format" |
|---|
| applies_to | "Format:RPX and RPL" |
|---|
| observed_in | |
|---|
|
|---|
| data | | name | "RPLFileInfo_v4_2" |
|---|
| size | 96 |
|---|
| alignment | 4 |
|---|
| fields | | name | "version" |
|---|
| offset | 0 |
|---|
| type | "u32" |
|---|
| note | "0xCAFE0402" |
|---|
|
| name | "textSize" |
|---|
| offset | 4 |
|---|
| type | "u32" |
|---|
|
| name | "textAlign" |
|---|
| offset | 8 |
|---|
| type | "u32" |
|---|
|
| name | "dataSize" |
|---|
| offset | 12 |
|---|
| type | "u32" |
|---|
|
| name | "dataAlign" |
|---|
| offset | 16 |
|---|
| type | "u32" |
|---|
|
| name | "loadSize" |
|---|
| offset | 20 |
|---|
| type | "u32" |
|---|
|
| name | "loadAlign" |
|---|
| offset | 24 |
|---|
| type | "u32" |
|---|
|
| name | "tempSize" |
|---|
| offset | 28 |
|---|
| type | "u32" |
|---|
|
| name | "trampAdjust" |
|---|
| offset | 32 |
|---|
| type | "u32" |
|---|
|
| name | "sdaBase" |
|---|
| offset | 36 |
|---|
| type | "u32" |
|---|
|
| name | "sda2Base" |
|---|
| offset | 40 |
|---|
| type | "u32" |
|---|
|
| name | "stackSize" |
|---|
| offset | 44 |
|---|
| type | "u32" |
|---|
|
| name | "filename" |
|---|
| offset | 48 |
|---|
| type | "u32" |
|---|
|
| name | "flags" |
|---|
| offset | 52 |
|---|
| type | "u32" |
|---|
| note | "bit 1 RPL_IS_RPX, bit 3 RPL_HAS_TLS" |
|---|
|
| name | "heapSize" |
|---|
| offset | 56 |
|---|
| type | "u32" |
|---|
|
| name | "tagOffset" |
|---|
| offset | 60 |
|---|
| type | "u32" |
|---|
|
| name | "minVersion" |
|---|
| offset | 64 |
|---|
| type | "u32" |
|---|
|
| name | "compressionLevel" |
|---|
| offset | 68 |
|---|
| type | "s32" |
|---|
|
| name | "trampAddition" |
|---|
| offset | 72 |
|---|
| type | "u32" |
|---|
|
| name | "fileInfoPad" |
|---|
| offset | 76 |
|---|
| type | "u32" |
|---|
|
| name | "cafeSdkVersion" |
|---|
| offset | 80 |
|---|
| type | "u32" |
|---|
|
| name | "cafeSdkRevision" |
|---|
| offset | 84 |
|---|
| type | "u32" |
|---|
|
| name | "tlsModuleIndex" |
|---|
| offset | 88 |
|---|
| type | "s16" |
|---|
|
| name | "tlsAlignShift" |
|---|
| offset | 90 |
|---|
| type | "u16" |
|---|
|
| name | "runtimeFileInfoSize" |
|---|
| offset | 92 |
|---|
| type | "u32" |
|---|
|
|
|---|
| endianness | "big" |
|---|
|
|---|
| evidence | | type | "source" |
|---|
| detail | "RPLFileInfo_v4_2 with CHECK_OFFSET/CHECK_SIZE 0x60; FileInfoFlags RPL_IS_RPX = 1<<1, RPL_HAS_TLS = 1<<3" |
|---|
| repo | "https://github.com/decaf-emu/decaf-emu" |
|---|
| commit | "e6c528a20a41c34e0f9eb91dd3da40f119db2dee" |
|---|
| path | "src/libdecaf/src/cafe/loader/cafe_loader_rpl.h" |
|---|
|
| type | "source" |
|---|
| detail | "Cemu checks fileInfoMagic == 0xCAFE0402; elf2rpl writes defaults textAlign 32, dataAlign 4096, loadAlign 32, stack 0x10000, heap 0x8000, compression level 6" |
|---|
| repo | "https://github.com/devkitPro/wut-tools" |
|---|
| commit | "b22de1a3c0c8950c4ad4b4df170c89c05d3196aa" |
|---|
| path | "src/elf2rpl/main.cpp" |
|---|
| lines | "184-212" |
|---|
|
|
|---|
| confidence | "high" |
|---|
| related | |
|---|
| key | "RPL file info v4.2" |
|---|
| status | "claimed" |
|---|
| created_by | "PatientStepper99" |
|---|
| created_at | "2026-10-18T14:58:35.511Z" |
|---|
| verifications | |
|---|
| revisions | | by | "PatientStepper99" |
|---|
| date | "2026-10-19T16:38:42.323Z" |
|---|
| summary | "data.endianness big added (decaf declares every field be2_val; CHECK_OFFSET/CHECK_SIZE 0x60 match all offsets)." |
|---|
| changed | |
|---|
|
|
|---|