commit ec757ea666a7549c5f144e2925ce3ccb396fe4c0 (tree)
parent 5dbac19d8c99478443885fab978d1d6558422ba4
Author: Jakub Konka <kubkon@jakubkonka.com>
Date: Sun, 28 Jan 2024 14:20:39 +0100
macho: reset Zig-tracked section handles
Diffstat:
1 file changed, 4 insertions(+), 0 deletions(-)
diff --git a/src/link/MachO.zig b/src/link/MachO.zig
@@ -2052,7 +2052,11 @@ pub fn sortSections(self: *MachO) !void {
for (&[_]*?u8{
&self.data_sect_index,
&self.got_sect_index,
+ &self.zig_text_sect_index,
&self.zig_got_sect_index,
+ &self.zig_const_sect_index,
+ &self.zig_data_sect_index,
+ &self.zig_bss_sect_index,
&self.stubs_sect_index,
&self.stubs_helper_sect_index,
&self.la_symbol_ptr_sect_index,