# macho: fix text block management · gitcafe/zig

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

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

Visibility: public

Requested revision: 3bfde76cff60a0d9c70d8e660dd633bed17a314f

Requested commit: 3bfde76cff60a0d9c70d8e660dd633bed17a314f

Commit: 3bfde76cff60a0d9c70d8e660dd633bed17a314f

Tree: 43445d49bcc77b3259e734cbd85f6a266e6c317d

Author: Jakub Konka

Committer: Jakub Konka

## Message

```
macho: fix text block management

For the time being, until we rewrite how atoms are handled across
linkers, store two tables in the MachO linker: one for TextBlocks
directly created and managed by the linker, and one for TextBlocks
that were spawned by Module.Decl. This allows for correct memory
clean up after linking is done.

```

## Parents

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

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