# elf: write all symbols in bulk in flush · gitcafe/zig

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

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

Visibility: public

Requested revision: 9bd60bef2a02b5646adbddc7b40ab070169eb16c

Requested commit: 9bd60bef2a02b5646adbddc7b40ab070169eb16c

Commit: 9bd60bef2a02b5646adbddc7b40ab070169eb16c

Tree: 69c3980215ef5018d37ae081d498cf01b7ca9f19

Author: Jakub Konka

Committer: Jakub Konka

## Message

```
elf: write all symbols in bulk in flush

This avoids leaving undefined bytes in the output file in case
a decl has been garbage collected before it's been committed into
the binary.

This should have minimal impact on performance since we have to
write globals on every iteration anyway.

```

## Parents

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

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