diff options
| author | Jakub Konka <kubkon@jakubkonka.com> | 2024-01-22 13:29:53 +0100 |
|---|---|---|
| committer | Jakub Konka <kubkon@jakubkonka.com> | 2024-01-24 12:34:42 +0100 |
| commit | 82628dd151c15241cffd17884ed5124808dc4ed2 (patch) | |
| tree | 75a7da2bdf55c2c0f0863cb1e61c54b5857c2e46 /src/link/MachO.zig | |
| parent | fe19d1e09b283c8f09afa49abb0f3835fdc40aaa (diff) | |
| download | zig-82628dd151c15241cffd17884ed5124808dc4ed2.tar.gz zig-82628dd151c15241cffd17884ed5124808dc4ed2.zip | |
macho: synthesise unwind records from __eh_frame even if no __compact_unwind
Diffstat (limited to 'src/link/MachO.zig')
| -rw-r--r-- | src/link/MachO.zig | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/link/MachO.zig b/src/link/MachO.zig index 8c6f0f9d0e..3ffee5ad73 100644 --- a/src/link/MachO.zig +++ b/src/link/MachO.zig @@ -1862,14 +1862,14 @@ fn initSyntheticSections(self: *MachO) !void { } const needs_unwind_info = for (self.objects.items) |index| { - if (self.getFile(index).?.object.compact_unwind_sect_index != null) break true; + if (self.getFile(index).?.object.hasUnwindRecords()) break true; } else false; if (needs_unwind_info) { self.unwind_info_sect_index = try self.addSection("__TEXT", "__unwind_info", .{}); } const needs_eh_frame = for (self.objects.items) |index| { - if (self.getFile(index).?.object.eh_frame_sect_index != null) break true; + if (self.getFile(index).?.object.hasEhFrameRecords()) break true; } else false; if (needs_eh_frame) { assert(needs_unwind_info); |
