| 199 | } |
| 200 | |
| 201 | u32 ElfObject::GetEntryPoint() const |
| 202 | { |
| 203 | if (isPSXElf) |
| 204 | { |
| 205 | if (HasValidPSXHeader()) |
| 206 | return reinterpret_cast<const PSXEXEHeader*>(data.data())->initial_pc; |
| 207 | else |
| 208 | return 0xFFFFFFFFu; |
| 209 | } |
| 210 | else |
| 211 | { |
| 212 | return GetHeader().e_entry; |
| 213 | } |
| 214 | } |
| 215 | |
| 216 | std::pair<u32,u32> ElfObject::GetTextRange() const |
| 217 | { |