aboutsummaryrefslogtreecommitdiff
path: root/src/link/MachO/UnwindInfo.zig
diff options
context:
space:
mode:
authorJakub Konka <kubkon@jakubkonka.com>2023-06-25 16:36:59 +0200
committerAndrew Kelley <andrew@ziglang.org>2023-06-25 14:33:00 -0700
commit852eb272bf895ee6fc242e298e31d666caa9d0df (patch)
treecef7aa1fe4ecbe34d4e92559c1e89fa67e32fced /src/link/MachO/UnwindInfo.zig
parentdf389b62de4430434a6518580e27208101ae2fc8 (diff)
downloadzig-852eb272bf895ee6fc242e298e31d666caa9d0df.tar.gz
zig-852eb272bf895ee6fc242e298e31d666caa9d0df.zip
macho: add fixes to __eh_frame parsing emitted by Nix C++ compiler
Diffstat (limited to 'src/link/MachO/UnwindInfo.zig')
-rw-r--r--src/link/MachO/UnwindInfo.zig2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/link/MachO/UnwindInfo.zig b/src/link/MachO/UnwindInfo.zig
index cfef053d1b..7e331cae3c 100644
--- a/src/link/MachO/UnwindInfo.zig
+++ b/src/link/MachO/UnwindInfo.zig
@@ -499,7 +499,7 @@ fn collectPersonalityFromDwarf(
const fde_offset = object.eh_frame_records_lookup.get(atom_index).?;
it.seekTo(fde_offset);
const fde = (try it.next()).?;
- const cie_ptr = fde.getCiePointer();
+ const cie_ptr = fde.getCiePointerSource(object_id, zld, fde_offset);
const cie_offset = fde_offset + 4 - cie_ptr;
it.seekTo(cie_offset);
const cie = (try it.next()).?;