commit e89155b565885d8fb0aca3d9843fba914f43e7d9 (tree)
parent ee1c3c70580bc8d0259a495cf67c3090196983b5
Author: Jakub Konka <kubkon@jakubkonka.com>
Date: Mon, 16 Oct 2023 19:32:34 +0200
elf: refactor logs
Diffstat:
2 files changed, 1 insertion(+), 7 deletions(-)
diff --git a/src/link/Elf.zig b/src/link/Elf.zig
@@ -1627,12 +1627,6 @@ pub fn flushModule(self: *Elf, comp: *Compilation, prog_node: *std.Progress.Node
try self.writeHeader();
}
- // Dump the state for easy debugging.
- // State can be dumped via `--debug-log link_state`.
- if (build_options.enable_logging) {
- state_log.debug("{}", .{self.dumpState()});
- }
-
// The point of flush() is to commit changes, so in theory, nothing should
// be dirty after this. However, it is possible for some things to remain
// dirty because they fail to be written in the event of compile errors,
diff --git a/src/link/Elf/Atom.zig b/src/link/Elf/Atom.zig
@@ -757,7 +757,7 @@ pub fn resolveRelocsAlloc(self: Atom, elf_file: *Elf, code: []u8) !void {
// Address of the dynamic thread pointer.
const DTP = @as(i64, @intCast(elf_file.dtpAddress()));
- relocs_log.debug(" {s}: {x}: [{x} => {x}] G({x}) ZG({x}) ({s})\n", .{
+ relocs_log.debug(" {s}: {x}: [{x} => {x}] G({x}) ZG({x}) ({s})", .{
fmtRelocType(r_type),
r_offset,
P,