# Generate more MachO exe boilerplate · gitcafe/zig

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

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

Visibility: public

Requested revision: a927f242019f22bda95fb4a74020966ac2bdb54e

Requested commit: a927f242019f22bda95fb4a74020966ac2bdb54e

Commit: a927f242019f22bda95fb4a74020966ac2bdb54e

Tree: 79662c18b6dc20b2b923cf9d507c2a698467f55a

Author: Jakub Konka

Committer: Jakub Konka

## Message

```
Generate more MachO exe boilerplate

* Convert draft to generate all relevant segments and sections in right places
* Do not prealloc space in text blocks until we can NOP
* Write out LC_LOAD_DYLINKER command
* Add LC_LOAD_DYLIB command in order to specify to load libSystem
* Redo update decl exports (similar to Elf globals, globals need to be contiguous in
  memory)

```

## Parents

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

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