mirror of
https://github.com/ziglang/zig.git
synced 2026-02-14 13:30:45 +00:00
macho: swap sectname with segname typo when allocating sections
This commit is contained in:
parent
700b1e38ce
commit
8d1ca8ce7b
@ -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,
|
||||
});
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user