mirror of
https://github.com/yuzu-emu/yuzu.git
synced 2024-11-15 09:20:05 +00:00
commented out bswap stuff... ARM ELF files are little endian anyway
This commit is contained in:
parent
a36f9492cc
commit
e32c03e860
@ -70,15 +70,15 @@ ElfReader::ElfReader(void *ptr)
|
|||||||
segments = (Elf32_Phdr *)(base + header->e_phoff);
|
segments = (Elf32_Phdr *)(base + header->e_phoff);
|
||||||
sections = (Elf32_Shdr *)(base + header->e_shoff);
|
sections = (Elf32_Shdr *)(base + header->e_shoff);
|
||||||
|
|
||||||
for (int i = 0; i < GetNumSegments(); i++)
|
//for (int i = 0; i < GetNumSegments(); i++)
|
||||||
{
|
//{
|
||||||
byteswapSegment(segments[i]);
|
// byteswapSegment(segments[i]);
|
||||||
}
|
//}
|
||||||
|
|
||||||
for (int i = 0; i < GetNumSections(); i++)
|
//for (int i = 0; i < GetNumSections(); i++)
|
||||||
{
|
//{
|
||||||
byteswapSection(sections[i]);
|
// byteswapSection(sections[i]);
|
||||||
}
|
//}
|
||||||
entryPoint = header->e_entry;
|
entryPoint = header->e_entry;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -122,6 +122,7 @@ bool ElfReader::LoadInto(u32 vaddr)
|
|||||||
u32 segmentVAddr[32];
|
u32 segmentVAddr[32];
|
||||||
|
|
||||||
u32 baseAddress = bRelocate?vaddr:0;
|
u32 baseAddress = bRelocate?vaddr:0;
|
||||||
|
|
||||||
for (int i = 0; i < header->e_phnum; i++)
|
for (int i = 0; i < header->e_phnum; i++)
|
||||||
{
|
{
|
||||||
Elf32_Phdr *p = segments + i;
|
Elf32_Phdr *p = segments + i;
|
||||||
|
Loading…
Reference in New Issue
Block a user