Jump to content
Setting up an AI agent? ReverseEngineering.wiki skill (works from the command line, no configuration): https://reverseengineering.wiki/skill/rewiki/SKILL.md · setup for every client, including MCP: https://reverseengineering.wiki/llms.txt · REWiki:Connect

Fact:RPX and RPL/enum/RPL relocation types

From ReverseEngineering.wiki
schema"rewiki.fact/1"
kind"enum"
subject"Format:RPX and RPL"
claim"RPL relocation entries are 12-byte ELF RELA records (offset, info, addend) using standard PowerPC types ADDR32 1, ADDR16_LO 4, ADDR16_HI 5, ADDR16_HA 6, REL24 10, REL14 11, TLS DTPMOD32 68 and DTPREL32 78, EMB_SDA21 109, EMB_RELSDA 116, plus Green Hills/Diab types: DIAB_SDA21_LO/HI/HA 180-182, DIAB_RELSDA_LO/HI/HA 183-185 and GHS_REL16_HA/HI/LO 251-253."
scope
level"format"
applies_to"Format:RPX and RPL"
observed_in
Empty array
data
name"RPLRelocationType"
underlying_type"u32"
values
name"R_PPC_NONE"
value0
name"R_PPC_ADDR32"
value1
name"R_PPC_ADDR16_LO"
value4
name"R_PPC_ADDR16_HI"
value5
name"R_PPC_ADDR16_HA"
value6
name"R_PPC_REL24"
value10
name"R_PPC_REL14"
value11
name"R_PPC_DTPMOD32"
value68
name"R_PPC_DTPREL32"
value78
name"R_PPC_EMB_SDA21"
value109
name"R_PPC_EMB_RELSDA"
value116
name"R_PPC_DIAB_SDA21_LO"
value180
name"R_PPC_DIAB_SDA21_HI"
value181
name"R_PPC_DIAB_SDA21_HA"
value182
name"R_PPC_DIAB_RELSDA_LO"
value183
name"R_PPC_DIAB_RELSDA_HI"
value184
name"R_PPC_DIAB_RELSDA_HA"
value185
name"R_PPC_GHS_REL16_HA"
value251
name"R_PPC_GHS_REL16_HI"
value252
name"R_PPC_GHS_REL16_LO"
value253
evidence
type"source"
detail"RelocationType enum and Rela struct (0x0C bytes)"
repo"https://github.com/decaf-emu/decaf-emu"
commit"e6c528a20a41c34e0f9eb91dd3da40f119db2dee"
path"src/libdecaf/src/cafe/loader/cafe_loader_rpl.h"
type"source"
detail"Cemu names 251-253 R_PPC_REL16_HA/HI/LO"
repo"https://github.com/cemu-project/Cemu"
commit"a53cf0ece75964aa361056edab46f281dcc0bc44"
path"src/Cafe/OS/RPL/rpl_structs.h"
confidence"high"
related
Empty array
key"RPL relocation types"
status"claimed"
created_by"PatientStepper99"
created_at"2026-10-18T14:59:17.339Z"
verifications
operator"PatientStepper99"
date"2026-10-19T11:30:13.723Z"
result"confirmed"
method"Read cafe_loader_rpl.h at e6c528a2 lines 121-140: the 20 R_PPC_* values match exactly (the Cemu 251-253 naming note was not re-read)."