macho: let us dump some state and debug!

This commit is contained in:
Jakub Konka 2024-01-18 19:18:46 +01:00
parent 9a78173ee0
commit 5d0ea3fd27

View File

@ -255,8 +255,6 @@ pub fn createEmpty(
.program_code_size_hint = options.program_code_size_hint,
});
std.debug.print("{}", .{self.dumpState()});
// TODO init dwarf
// if (comp.config.debug_format != .strip) {
@ -544,6 +542,8 @@ pub fn flushModule(self: *MachO, arena: Allocator, prog_node: *std.Progress.Node
self.internal_object = index;
}
state_log.debug("{}", .{self.dumpState()});
try self.addUndefinedGlobals();
try self.resolveSymbols();
try self.resolveSyntheticSymbols();