# macho: create dummy atom of size 0 marking end of a section · gitcafe/zig

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

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

Visibility: public

Requested revision: 7e530c13b3ef9b61417a610c00fc1d37c11ff7ed

Requested commit: 7e530c13b3ef9b61417a610c00fc1d37c11ff7ed

Commit: 7e530c13b3ef9b61417a610c00fc1d37c11ff7ed

Tree: a88fcad833f8413ddc753afec2dec8f35f70fe95

Author: Jakub Konka

Committer: Andrew Kelley

## Message

```
macho: create dummy atom of size 0 marking end of a section

Some compilers such as Go reference the end of a section (addr + size)
which cannot be contained in any non-zero atom (since then this atom
would exceed section boundaries). In order to facilitate this behaviour,
we create a dummy zero-sized atom at section end (addr + size).

```

## Parents

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

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