commit 78740e55406ebf82371f385bbbf54f224949b8cb (tree)
parent ec757ea666a7549c5f144e2925ce3ccb396fe4c0
Author: Jakub Konka <kubkon@jakubkonka.com>
Date: Mon, 29 Jan 2024 13:01:05 +0100
macho: flush Dwarf module before flushing dSYM
Diffstat:
1 file changed, 2 insertions(+), 0 deletions(-)
diff --git a/src/link/MachO/DebugSymbols.zig b/src/link/MachO/DebugSymbols.zig
@@ -206,6 +206,8 @@ pub fn flushModule(self: *DebugSymbols, macho_file: *MachO) !void {
// and it corresponds to the Zig source code.
const zcu = comp.module orelse return error.LinkingWithoutZigSourceUnimplemented;
+ try self.dwarf.flushModule(zcu);
+
for (self.relocs.items) |*reloc| {
const sym = macho_file.getSymbol(reloc.target);
const sym_name = sym.getName(macho_file);