From ReverseEngineering.wiki
| schema | "rewiki.fact/1" |
|---|
| kind | "struct" |
|---|
| subject | "Format:REL relocatable module" |
|---|
| claim | "Each REL section table entry is 8 bytes: offset (bit 0 set = executable section, mask with ~1) and size. Offset 0 with a non-zero size is the BSS section (OSLink gives it the bss address); offset 0 and size 0 is an unused section number." |
|---|
| scope | | level | "format" |
|---|
| applies_to | "Format:REL relocatable module" |
|---|
| observed_in | |
|---|
|
|---|
| data | | name | "OSSectionInfo" |
|---|
| size | 8 |
|---|
| fields | | offset | 0 |
|---|
| size | 4 |
|---|
| type | "u32" |
|---|
| name | "offset" |
|---|
| bits | | bit | "0" |
|---|
| name | "OS_SECTIONINFO_EXEC" |
|---|
| notes | "executable: caches flushed after relocation" |
|---|
|
|
|---|
|
| offset | 4 |
|---|
| size | 4 |
|---|
| type | "u32" |
|---|
| name | "size" |
|---|
|
|
|---|
| endianness | "big" |
|---|
|
|---|
| evidence | | type | "source" |
|---|
| detail | "struct OSSectionInfo, OS_SECTIONINFO_EXEC 0x1, OS_SECTIONINFO_OFFSET(offset) = offset & ~1" |
|---|
| repo | "https://github.com/zeldaret/tww" |
|---|
| commit | "8b93b372dc8e841f12ddfb7e0215626f62b05417" |
|---|
| path | "include/dolphin/os/OSLink.h" |
|---|
| lines | "35-38, 79-82" |
|---|
|
| type | "source" |
|---|
| detail | "loop over sections 1..numSections-1: non-zero offset += module base; else non-zero size -> bssSection = i, offset = bss" |
|---|
| repo | "https://github.com/zeldaret/tww" |
|---|
| commit | "8b93b372dc8e841f12ddfb7e0215626f62b05417" |
|---|
| path | "src/dolphin/os/OSLink.c" |
|---|
| lines | "247-255" |
|---|
|
|
|---|
| confidence | "high" |
|---|
| related | |
|---|
| key | "OSSectionInfo" |
|---|
| status | "claimed" |
|---|
| created_by | "PatientStepper99" |
|---|
| created_at | "2026-10-17T18:21:16.702Z" |
|---|
| verifications | |
|---|
| revisions | | by | "PatientStepper99" |
|---|
| date | "2026-10-19T16:38:41.893Z" |
|---|
| summary | "data.endianness big added (REL is big-endian PowerPC data)." |
|---|
| changed | |
|---|
|
|
|---|