# link/MachO: fix eh_frame handling on macOS · gitcafe/zig

[View on GitCafe](https://git.cafe/gitcafe/zig/commit/e835b864e8e5d2ff33b9f59f9f65c74f86093dfc)

Repository: [gitcafe/zig](https://git.cafe/gitcafe/zig)

Visibility: public

Requested revision: e835b864e8e5d2ff33b9f59f9f65c74f86093dfc

Requested commit: e835b864e8e5d2ff33b9f59f9f65c74f86093dfc

Commit: e835b864e8e5d2ff33b9f59f9f65c74f86093dfc

Tree: 91008179bfb57bb2e8eb56ca355cbbd146ec8999

Author: Vadym Prodan

Committer: Vadym Prodan

## Message

```
link/MachO: fix eh_frame handling on macOS

Fixes several issues with eh_frame generation and unwind info on macOS:

* Fix FDE address calculation by including atom_offset
* Store and use pc_range (function size) from FDE for coverage checks
* Avoid creating null unwind records for addresses already covered by
  DWARF FDEs, allowing unwinder to properly fall back to DWARF info
* Remove incorrect addend adjustment in personality pointer calculation

```

## Parents

- [05b15e8bdb0f402fa2acea113ecbbe171f4d02bf](https://git.cafe/gitcafe/zig/commit/05b15e8bdb0f402fa2acea113ecbbe171f4d02bf?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zig/tree/e835b864e8e5d2ff33b9f59f9f65c74f86093dfc?format=markdown)
