Skip to content

Commit

Permalink
macho: fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
kubkon committed Jan 27, 2024
1 parent 2ee5877 commit 45adee2
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
4 changes: 0 additions & 4 deletions src/MachO.zig
Original file line number Diff line number Diff line change
Expand Up @@ -1226,10 +1226,6 @@ fn createObjcSections(self: *MachO) !void {
const internal = self.getInternalObject().?;
const sym = self.getSymbol(sym_index);
_ = try internal.addSymbol(sym.getName(self), self);
sym.value = 0;
sym.atom = 0;
sym.nlist_idx = 0;
sym.flags = .{ .global = true };
sym.visibility = .hidden;
const name = eatPrefix(sym.getName(self), "_objc_msgSend$").?;
const selrefs_index = try internal.addObjcMsgsendSections(name, self);
Expand Down
1 change: 1 addition & 0 deletions src/MachO/DwarfInfo.zig
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ pub fn deinit(dw: *DwarfInfo, allocator: Allocator) void {
}
dw.compile_units.deinit(allocator);
dw.strtab.deinit(allocator);
dw.di_data.deinit(allocator);
}

fn appendDiData(dw: *DwarfInfo, allocator: Allocator, values: []const u8) error{OutOfMemory}!u32 {
Expand Down

0 comments on commit 45adee2

Please sign in to comment.