aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJakub Konka <kubkon@jakubkonka.com>2024-01-19 21:30:55 +0100
committerJakub Konka <kubkon@jakubkonka.com>2024-01-24 12:34:42 +0100
commiteaf4bb442300adb4cedebf918738028e074a01b3 (patch)
tree40f6d347a31cef4c5da1457ec2819a7fe8f9e8e9 /src
parent8f74d2519f2d262ee4ff9ab14316e76433c05901 (diff)
downloadzig-eaf4bb442300adb4cedebf918738028e074a01b3.tar.gz
zig-eaf4bb442300adb4cedebf918738028e074a01b3.zip
macho: fix not resetting __got_zig sect index after sorting headers
Diffstat (limited to 'src')
-rw-r--r--src/link/MachO.zig1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/link/MachO.zig b/src/link/MachO.zig
index 36e34d5ff0..3617dc9c7d 100644
--- a/src/link/MachO.zig
+++ b/src/link/MachO.zig
@@ -2037,6 +2037,7 @@ pub fn sortSections(self: *MachO) !void {
for (&[_]*?u8{
&self.data_sect_index,
&self.got_sect_index,
+ &self.zig_got_sect_index,
&self.stubs_sect_index,
&self.stubs_helper_sect_index,
&self.la_symbol_ptr_sect_index,