From 23d2254289da83284eab872d1f57fe89dd81ae0b Mon Sep 17 00:00:00 2001 From: Jakub Konka Date: Mon, 1 Jan 2024 20:27:33 +0100 Subject: [PATCH] macho: actually emit __compact_unwind section --- src/MachO/relocatable.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/MachO/relocatable.zig b/src/MachO/relocatable.zig index 92354375..feff421b 100644 --- a/src/MachO/relocatable.zig +++ b/src/MachO/relocatable.zig @@ -114,7 +114,7 @@ fn initOutputSections(macho_file: *MachO) !void { if (macho_file.getFile(index).?.object.has_unwind) break true; } else false; if (needs_unwind_info) { - macho_file.unwind_info_sect_index = try macho_file.addSection("__TEXT", "__compact_unwind", .{ + macho_file.unwind_info_sect_index = try macho_file.addSection("__LD", "__compact_unwind", .{ .flags = macho.S_ATTR_DEBUG, }); }