Commit 8d1ca8ce7b

Jakub Konka <kubkon@jakubkonka.com>
2023-08-28 00:00:27
macho: swap sectname with segname typo when allocating sections
1 parent 700b1e3
Changed files (1)
src
src/link/MachO.zig
@@ -3070,7 +3070,7 @@ fn allocateSection(self: *MachO, segname: []const u8, sectname: []const u8, opts
         .cmdsize = @sizeOf(macho.segment_command_64) + @sizeOf(macho.section_64),
     };
 
-    const sect_id = try self.initSection(sectname, segname, .{
+    const sect_id = try self.initSection(segname, sectname, .{
         .flags = opts.flags,
         .reserved2 = opts.reserved2,
     });