hrydgard/ppsspp — pull request #325 by artart78 (2013-01-04 19:13:02+00:00)
Title: Load ELFs at the correct place

Makes ELF allocate the correct size for the binary: when the binary doesn't start at 0 (or 0x08800000 if prerelocated), it still allocated at the offset 0, so the allocated memory space ended before the end of the space the ELF needed.
Fixes Little Big Planet bootstart (the game fails after choosing the language though), Project Diva 1 and 2, and probably others.