From ReverseEngineering.wiki
| schema | "rewiki.fact/1" |
|---|
| kind | "enum" |
|---|
| subject | "Format:REL relocatable module" |
|---|
| claim | "REL relocation types are the ELF PowerPC numbers 0-13 (R_PPC_NONE, ADDR32, ADDR24, ADDR16, ADDR16_LO, ADDR16_HI, ADDR16_HA, ADDR14 and its BRTAKEN/BRNTAKEN variants, REL24, REL14 and variants), which the SDK's OSLink applies, plus Dolphin-specific control records 201 R_DOLPHIN_NOP, 202 R_DOLPHIN_SECTION, 203 R_DOLPHIN_END and 204 R_DOLPHIN_MRKREF. Other types make OSLink print 'OSLink: unknown relocation type %3d'." |
|---|
| scope | | level | "format" |
|---|
| applies_to | "Format:REL relocatable module" |
|---|
| observed_in | |
|---|
|
|---|
| data | | name | "rel_reloc_type" |
|---|
| underlying_type | "u8" |
|---|
| values | |
|
|
|
| name | "R_PPC_ADDR16_LO" |
|---|
| value | 4 |
|---|
|
| name | "R_PPC_ADDR16_HI" |
|---|
| value | 5 |
|---|
|
| name | "R_PPC_ADDR16_HA" |
|---|
| value | 6 |
|---|
|
|
| name | "R_PPC_ADDR14_BRTAKEN" |
|---|
| value | 8 |
|---|
|
| name | "R_PPC_ADDR14_BRNTAKEN" |
|---|
| value | 9 |
|---|
|
|
|
| name | "R_PPC_REL14_BRTAKEN" |
|---|
| value | 12 |
|---|
|
| name | "R_PPC_REL14_BRNTAKEN" |
|---|
| value | 13 |
|---|
|
| name | "R_DOLPHIN_NOP" |
|---|
| value | 201 |
|---|
| notes | "advance position only" |
|---|
|
| name | "R_DOLPHIN_SECTION" |
|---|
| value | 202 |
|---|
| notes | "select section to patch, position = 0" |
|---|
|
| name | "R_DOLPHIN_END" |
|---|
| value | 203 |
|---|
| notes | "end of stream" |
|---|
|
| name | "R_DOLPHIN_MRKREF" |
|---|
| value | 204 |
|---|
| notes | "not handled by OSLink" |
|---|
|
|
|---|
|
|---|
| evidence | | type | "source" |
|---|
| detail | "R_DOLPHIN_NOP 201, R_DOLPHIN_SECTION 202, R_DOLPHIN_END 203, R_DOLPHIN_MRKREF 204" |
|---|
| repo | "https://github.com/zeldaret/tww" |
|---|
| commit | "8b93b372dc8e841f12ddfb7e0215626f62b05417" |
|---|
| path | "include/dolphin/os/OSLink.h" |
|---|
| lines | "96-99" |
|---|
|
| type | "source" |
|---|
| detail | "R_PPC_* defines and the switch in Relocate handling types 0-13, 201, 202; default prints unknown relocation type" |
|---|
| repo | "https://github.com/zeldaret/tww" |
|---|
| commit | "8b93b372dc8e841f12ddfb7e0215626f62b05417" |
|---|
| path | "src/dolphin/os/OSLink.c" |
|---|
| lines | "17-30, 154-210" |
|---|
|
| type | "source" |
|---|
| detail | "same R_DOLPHIN_* constants" |
|---|
| repo | "https://github.com/encounter/decomp-toolkit" |
|---|
| commit | "0645e16511814920ffb05b25615dd71f1af73e4c" |
|---|
| path | "src/util/rel.rs" |
|---|
| lines | "27-35" |
|---|
|
|
|---|
| confidence | "high" |
|---|
| related | |
|---|
| key | "REL relocation types" |
|---|
| status | "claimed" |
|---|
| created_by | "PatientStepper99" |
|---|
| created_at | "2026-10-17T18:21:16.879Z" |
|---|
| verifications | |
|---|