Removed actual ELF loading from the ELF parser as we leave this up to the BIOS now.

This commit is contained in:
Pseudonym 2014-08-15 18:39:24 +01:00
parent 4de63714ce
commit 4400b56fb5
1 changed files with 0 additions and 23 deletions

View File

@ -324,29 +324,6 @@ void ElfObject::loadProgramHeaders()
case 0x1:
{
ELF_LOG("load");
const uint elfsize = data.GetLength();
if (proghead[ i ].p_offset < elfsize)
{
int size;
if ((proghead[ i ].p_filesz + proghead[ i ].p_offset) > elfsize)
size = elfsize - proghead[ i ].p_offset;
else
size = proghead[ i ].p_filesz;
if (proghead[ i ].p_vaddr != proghead[ i ].p_paddr)
Console.Warning( "ElfProgram different load addrs: paddr=0x%8.8x, vaddr=0x%8.8x",
proghead[ i ].p_paddr, proghead[ i ].p_vaddr);
// used to be paddr
memcpy_fast(
&eeMem->Main[proghead[ i ].p_vaddr & 0x1ffffff],
data.GetPtr(proghead[ i ].p_offset), size
);
ELF_LOG("\t*LOADED*");
}
}
break;
}