macho: swap sectname with segname typo when allocating sections

This commit is contained in:
Jakub Konka 2023-08-28 00:00:27 +02:00
parent 700b1e38ce
commit 8d1ca8ce7b

View File

@ -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,
});