mirror of
https://github.com/RPCS3/rpcs3.git
synced 2024-11-17 08:11:51 +00:00
PPU Analyzer: Fix for unaligned sections
This commit is contained in:
parent
e2d4d400ff
commit
756ab1191e
@ -699,6 +699,11 @@ bool ppu_module::analyse(u32 lib_toc, u32 entry, const u32 sec_end, const std::b
|
||||
// Find OPD section
|
||||
for (const auto& sec : secs)
|
||||
{
|
||||
if (sec.size % 8)
|
||||
{
|
||||
continue;
|
||||
}
|
||||
|
||||
vm::cptr<void> sec_end = vm::cast(sec.addr + sec.size);
|
||||
|
||||
// Probe
|
||||
@ -785,6 +790,11 @@ bool ppu_module::analyse(u32 lib_toc, u32 entry, const u32 sec_end, const std::b
|
||||
// Find .eh_frame section
|
||||
for (const auto& sec : secs)
|
||||
{
|
||||
if (sec.size % 4)
|
||||
{
|
||||
continue;
|
||||
}
|
||||
|
||||
vm::cptr<void> sec_end = vm::cast(sec.addr + sec.size);
|
||||
|
||||
// Probe
|
||||
|
Loading…
Reference in New Issue
Block a user