mirror of
https://github.com/RPCSX/rpcsx.git
synced 2026-04-06 06:55:09 +00:00
Optimize memory usage of ELF loader
Do not duplicate shdr memory when it is present in phdr.
This commit is contained in:
parent
bb92154145
commit
744a1528cc
3 changed files with 74 additions and 6 deletions
|
|
@ -2783,7 +2783,7 @@ bool ppu_load_rel_exec(const ppu_rel_object& elf)
|
|||
_sec.addr = addr;
|
||||
relm.secs.emplace_back(_sec);
|
||||
|
||||
std::memcpy(vm::base(addr), s.bin.data(), size);
|
||||
std::memcpy(vm::base(addr), s.get_bin().data(), size);
|
||||
addr = utils::align<u32>(addr + size, 128);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue