# macho: handle binary updates in dSYM companion file · gitcafe/zig

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

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

Visibility: public

Requested revision: 5283a52af565521094bcd1186efc179b4be7ee8c

Requested commit: 5283a52af565521094bcd1186efc179b4be7ee8c

Commit: 5283a52af565521094bcd1186efc179b4be7ee8c

Tree: 28f00732496d6204284ff0631a0b0f9f3dd55784

Author: Jakub Konka

Committer: Jakub Konka

## Message

```
macho: handle binary updates in dSYM companion file

* move DWARF in file if LINKEDIT spilled in dSYM
* update VM addresses for all segments
* introduce copyFileRangeOverlappedAll instead of File.copyRangeAll
  since we make lots of overlapping writes in MachO linker

```

## Parents

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

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