The new relocation offset in .relr section patching was calculated wrong previously. Pass the new file offset to lambda instead of re-calculating it in it. Test removes relocation from mytext section, so in case of wrong offset calculation we won't emit right addend value in expected place, i.e. on the new relocation offset. Differential Revision: https://reviews.llvm.org/D159543
199 KiB
199 KiB