# macho\+zld: write code signature padding before commiting LCs · gitcafe/zig

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

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

Visibility: public

Requested revision: 550ebcce9abe9db9453509b38820756a1fff8391

Requested commit: 550ebcce9abe9db9453509b38820756a1fff8391

Commit: 550ebcce9abe9db9453509b38820756a1fff8391

Tree: 41398a47cd5ea6a95f4bd4abdc5f0708b16ba525

Author: Jakub Konka

Committer: Jakub Konka

## Message

```
macho+zld: write code signature padding before commiting LCs

Otherwise, we were prematurely committing `__LINKEDIT` segment LC
with outdated size (i.e., without code signature being taken into account).
This would scaffold into strict validation failures by Apple tooling.

```

## Parents

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

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