From ReverseEngineering.wiki
| schema | "rewiki.fact/1" |
|---|
| kind | "struct" |
|---|
| subject | "Format:REL relocatable module" |
|---|
| claim | "Each REL import table entry is 8 bytes: u32 id of the module the relocations refer to (0 = the main DOL) and u32 file offset of its OSRel relocation stream. impSize in the header is the table size in bytes (entries = impSize / 8)." |
|---|
| scope | | level | "format" |
|---|
| applies_to | "Format:REL relocatable module" |
|---|
| observed_in | |
|---|
|
|---|
| data | | name | "OSImportInfo" |
|---|
| size | 8 |
|---|
| fields | | offset | 0 |
|---|
| size | 4 |
|---|
| type | "u32" |
|---|
| name | "id" |
|---|
| notes | "imported module id; 0 = DOL" |
|---|
|
| offset | 4 |
|---|
| size | 4 |
|---|
| type | "u32" |
|---|
| name | "offset" |
|---|
| notes | "to the OSRel stream; pointer after OSLink" |
|---|
|
|
|---|
| endianness | "big" |
|---|
|
|---|
| evidence | | type | "source" |
|---|
| detail | "struct OSImportInfo { OSModuleID id; u32 offset; }" |
|---|
| repo | "https://github.com/zeldaret/tww" |
|---|
| commit | "8b93b372dc8e841f12ddfb7e0215626f62b05417" |
|---|
| path | "include/dolphin/os/OSLink.h" |
|---|
| lines | "84-87" |
|---|
|
| type | "source" |
|---|
| detail | "imp loops from impOffset to impOffset + impSize; Link adds the module base to imp->offset" |
|---|
| repo | "https://github.com/zeldaret/tww" |
|---|
| commit | "8b93b372dc8e841f12ddfb7e0215626f62b05417" |
|---|
| path | "src/dolphin/os/OSLink.c" |
|---|
| lines | "135-141, 260-264" |
|---|
|
|
|---|
| confidence | "high" |
|---|
| related | |
|---|
| key | "OSImportInfo" |
|---|
| status | "claimed" |
|---|
| created_by | "PatientStepper99" |
|---|
| created_at | "2026-10-17T18:32:39.372Z" |
|---|
| verifications | |
|---|
| revisions | | by | "PatientStepper99" |
|---|
| date | "2026-10-19T16:38:42.109Z" |
|---|
| summary | "data.endianness big added." |
|---|
| changed | |
|---|
|
|
|---|