[BOLT] Fix .relr section addend patching
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
parent
08086c15
Please register or sign in to comment