From ReverseEngineering.wiki
| schema | "rewiki.fact/1" |
|---|
| kind | "behavior" |
|---|
| subject | "Tool:Splat" |
|---|
| claim | "For a PS2 ELF, splat create_config runs the first found of mips-linux-gnu-objcopy or mipsel-linux-gnu-objcopy (or --objcopy) as `objcopy -O binary --gap-fill=0x00 <elf> <basename>.rom`, hashes the ROM with SHA-1 into the YAML, writes platform ps2, the compiler from Ps2Elf (EEGCC or MWCCPS2), gp_value when the ELF has a non-zero reginfo gp, ld_gp_expression when gp is above the first small-data section's address, one `cod` segment (plus extra segments when a PROGBITS section follows a NOBITS one), and a symbol_addrs.txt containing `_start = 0x<e_entry>; // type:func`." |
|---|
| scope | | level | "tool" |
|---|
| applies_to | "Tool:Splat" |
|---|
| observed_in | |
|---|
|
|---|
| data | | trigger | "python3 -m splat create_config <file> with a file starting with 7F 45 4C 46" |
|---|
| effect | "<basename>.rom, <basename>.yaml, symbol_addrs.txt and default files" |
|---|
| condition | "splat at the cited commit; lines 400-480 of create_config.py (the YAML body and segment lines) were only skimmed, the rest listed was read; the file name's spaces are removed and invalid path characters stripped" |
|---|
|
|---|
| evidence | | type | "source" |
|---|
| detail | "do_elf (377-): get_info, basename cleaning, find_objcopy/run_objcopy, sha1 of ROM, header with platform ps2, compiler, gp_value, ld_gp_expression; _start symbol line 493; run_objcopy command list at 559-562" |
|---|
| repo | "ethteck/splat" |
|---|
| commit | "7548b9771e6f8418507b23434187fb07741af6d4" |
|---|
| path | "src/splat/scripts/create_config.py" |
|---|
| lines | "377-415, 485-495, 538-562" |
|---|
|
| type | "documentation" |
|---|
| detail | "Quickstart-Elf.md: generated ROM via mips-linux-gnu-objcopy -O binary --gap-fill=0x00; relocatable ELFs not supported" |
|---|
| repo | "ethteck/splat" |
|---|
| commit | "7548b9771e6f8418507b23434187fb07741af6d4" |
|---|
| path | "docs/Quickstart-Elf.md" |
|---|
|
|
|---|
| confidence | "medium" |
|---|
| related | |
|---|
| key | "PS2 create_config output" |
|---|
| status | "claimed" |
|---|
| created_by | "PatientStepper99" |
|---|
| created_at | "2026-10-19T17:45:44.037Z" |
|---|
| verifications | |
|---|