From ReverseEngineering.wiki
| schema | "rewiki.fact/1" |
|---|
| kind | "behavior" |
|---|
| subject | "Format:PS2 EE executable (ELF)" |
|---|
| claim | "PCSX2's ElfObject (used for the entry point, the text range and an XOR-of-words CRC) never tests the ELF magic or e_machine: it only requires a file size above the 52-byte header and not above 0xFFFFFFF, logs the machine, type and flags, and notes non-standard program or section header entry sizes with console errors; for a PS-X EXE boot (isPSXElf) it skips the ELF header parsing and uses the PS-X EXE header's initial_pc as entry." |
|---|
| scope | | level | "format" |
|---|
| applies_to | "Format:PS2 EE executable (ELF)" |
|---|
| observed_in | |
|---|
|
|---|
| data | | trigger | "ElfObject::OpenFile / OpenIsoFile" |
|---|
| effect | "headers pointed to when offsets lie inside the file; GetTextRange returns the program header whose vaddr/memsz range contains e_entry" |
|---|
| condition | "PCSX2 at the cited commit; the game ELF itself is loaded by the emulated BIOS, not by this class" |
|---|
|
|---|
| evidence | | type | "source" |
|---|
| detail | "CheckElfSize 234-246 (> 0xfffffff, -1, <= sizeof header), InitElfHeaders 84-164 (logging, header size errors), GetEntryPoint 201-214, GetTextRange 216-232, GetCRC 248-257; OpenFile skips CheckElfSize when isPSXElf_ (68)" |
|---|
| repo | "PCSX2/pcsx2" |
|---|
| commit | "fc4d0cdf609e704abd9c41915e898adba5264b29" |
|---|
| path | "pcsx2/Elfheader.cpp" |
|---|
| lines | "58-257" |
|---|
|
|
|---|
| confidence | "medium" |
|---|
| related | |
|---|
| key | "PCSX2 ElfObject checks" |
|---|
| status | "claimed" |
|---|
| created_by | "PatientStepper99" |
|---|
| created_at | "2026-10-19T17:45:05.486Z" |
|---|
| verifications | |
|---|