From ReverseEngineering.wiki
| schema | "rewiki.fact/1" |
|---|
| kind | "struct" |
|---|
| subject | "Format:RPX and RPL" |
|---|
| claim | "An imports section (type 0x80000002, one per library, named .fimport_<lib> for functions with the executable flag or .dimport_<lib> for data) starts with a u32 count and a u32 signature (wut-tools writes 1 and 0 and notes hardware does not check them), then the NUL-terminated library name padded to a multiple of 8 bytes (at section offset 8), then 8-byte zero-filled slots, one per imported symbol, that the ELF symbols point into. Unverified: exactly how the loader patches the two words of a slot." |
|---|
| scope | | level | "format" |
|---|
| applies_to | "Format:RPX and RPL" |
|---|
| observed_in | |
|---|
|
|---|
| data | | name | "RPLImports" |
|---|
| size_min | 16 |
|---|
| fields | | name | "count" |
|---|
| offset | 0 |
|---|
| type | "u32" |
|---|
|
| name | "signature" |
|---|
| offset | 4 |
|---|
| type | "u32" |
|---|
|
| name | "libraryName" |
|---|
| offset | 8 |
|---|
| type | "char[]" |
|---|
| note | "NUL terminated, padded up to a multiple of 8; the slots follow it" |
|---|
|
|
|---|
| endianness | "big" |
|---|
|
|---|
| evidence | | type | "source" |
|---|
| detail | "library name read at section address + 8 (RPLLoader_incrementModuleDependencyRefs)" |
|---|
| repo | "https://github.com/cemu-project/Cemu" |
|---|
| commit | "a53cf0ece75964aa361056edab46f281dcc0bc44" |
|---|
| path | "src/Cafe/OS/RPL/rpl.cpp" |
|---|
| lines | "1538-1547" |
|---|
|
| type | "source" |
|---|
| detail | "rplimportgen: count and signature comments say they are not checked; name padded to 8; each import is two .long 0 words in its own .fimport_/.dimport_ section" |
|---|
| repo | "https://github.com/devkitPro/wut-tools" |
|---|
| commit | "b22de1a3c0c8950c4ad4b4df170c89c05d3196aa" |
|---|
| path | "src/rplimportgen/rplimportgen.cpp" |
|---|
| lines | "28-79" |
|---|
|
|
|---|
| confidence | "medium" |
|---|
| related | |
|---|
| key | "RPL imports section" |
|---|
| status | "claimed" |
|---|
| created_by | "PatientStepper99" |
|---|
| created_at | "2026-10-18T14:58:35.646Z" |
|---|
| verifications | |
|---|
| revisions | | by | "PatientStepper99" |
|---|
| date | "2026-10-19T16:38:42.524Z" |
|---|
| summary | "data.endianness big added (decaf Imports {count, signature} be2_val, size 8)." |
|---|
| changed | |
|---|
|
|
|---|