PPU Analyser: fix constraints for all elfs.

Added for main executable and OVLs.
Forgot to use it not just for SPRX.
This commit is contained in:
Nekotekina 2021-02-01 18:33:19 +03:00
parent 390b192f0a
commit 58eef983e2
3 changed files with 46 additions and 6 deletions

View file

@ -534,7 +534,7 @@ void ppu_module::analyse(u32 lib_toc, u32 entry, u32 end)
// Assume first segment is executable
const u32 start = segs[0].addr;
if (end == umax)
if (!end)
{
end = segs[0].addr + segs[0].size;
}