CRO0: Difference between revisions

No edit summary
No edit summary
Line 108: Line 108:
| 0xF8
| 0xF8
| 0x04
| 0x04
| unk5 offset
| Import Patches offset
|-
|-
| 0xFC
| 0xFC
| 0x04
| 0x04
| unk5 num (size = num * 12)
| Import Patches num (size = num * 12)
|-
|-
| 0x100
| 0x100
Line 156: Line 156:
| 0x128
| 0x128
| 0x04
| 0x04
| Import Info offset
| Relocation Patches offset
|-
|-
| 0x12C
| 0x12C
| 0x04
| 0x04
| Import Info num (size = num * 12)
| Relocation Patches num (size = num * 12)
|-
|-
| 0x130
| 0x130
Line 233: Line 233:
|}
|}


Symbol entry (12 bytes)
Patch entry (12 bytes)
{| class="wikitable" border="1"
{| class="wikitable" border="1"
!  Offset
!  Offset
Line 245: Line 245:
| 0x4
| 0x4
| 0x1
| 0x1
| Type (0=nothing/ignore, 2=38=write u32 absolute (base+X), 3=write u32 relative (base+X-in_ptr), 10=THUMB branch, 28=ARM32 branch, 29=modify ARM32 branch offset, 42=write u32 relative (((signed int)base*2)/2+X-in_ptr), otherwise err)
| Patch type (0=nothing/ignore, 2=38=write u32 absolute (base+X), 3=write u32 relative (base+X-in_ptr), 10=THUMB branch, 28=ARM32 branch, 29=modify ARM32 branch offset, 42=write u32 relative (((signed int)base*2)/2+X-in_ptr), otherwise err)
|-
|-
| 0x5
| 0x5