Actually find the relocations correctly and process them that way.
Find the relocations based on the *file* address in the old binary, because it's only the same as the virtual address some of the time. Also perform some extra validation before processing it, and don't bail out in /error/ if both ReloceBase and RelocEnd are null - that condition is fine. Signed-off-by: Peter Jones <firstname.lastname@example.org>
Showing with 77 additions and 13 deletions