authorgravatar for kubkon@jakubkonka.comJakub Konka <kubkon@jakubkonka.com> 2024-01-19 21:30:55+01:00
committergravatar for kubkon@jakubkonka.comJakub Konka <kubkon@jakubkonka.com> 2024-01-24 12:34:42+01:00
logeaf4bb442300adb4cedebf918738028e074a01b3
tree40f6d347a31cef4c5da1457ec2819a7fe8f9e8e9
parent8f74d2519f2d262ee4ff9ab14316e76433c05901

macho: fix not resetting __got_zig sect index after sorting headers


1 files changed, 1 insertions(+), 0 deletions(-)

src/link/MachO.zig+1
......@@ -2037,6 +2037,7 @@ pub fn sortSections(self: *MachO) !void {
20372037 for (&[_]*?u8{
20382038 &self.data_sect_index,
20392039 &self.got_sect_index,
2040 &self.zig_got_sect_index,
20402041 &self.stubs_sect_index,
20412042 &self.stubs_helper_sect_index,
20422043 &self.la_symbol_ptr_sect_index,