Vladislav Khmelevsky 0053cb8ef0 [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
2023-09-28 12:55:57 +04:00
..