# macho: ensure we zero-out regions after copying them over · gitcafe/zig

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

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

Visibility: public

Requested revision: 060406a52665e9c70012a7148757bd6d9797cf34

Requested commit: 060406a52665e9c70012a7148757bd6d9797cf34

Commit: 060406a52665e9c70012a7148757bd6d9797cf34

Tree: 2009c00599dc4b8402322014e651a0e4c8de0894

Author: Jakub Konka

Committer: Jakub Konka

## Message

```
macho: ensure we zero-out regions after copying them over

This is to ensure that the loader correctly zeroes-out zerofill
sections when mapping them. For context, Apple's loader dyld
will map the regions where any zerofill would theoretically reside
as belonging to zerofill section.

```

## Parents

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

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