# Fix bug where \_\_text section would get overwritten · gitcafe/zig

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

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

Visibility: public

Requested revision: 9306dbd6194251e816f11bc8f420fac0d1ca8835

Requested commit: 9306dbd6194251e816f11bc8f420fac0d1ca8835

Commit: 9306dbd6194251e816f11bc8f420fac0d1ca8835

Tree: d77007ecc023cd179070e8c3795f2a3972305bb1

Author: Jakub Konka

Committer: Jakub Konka

## Message

```
Fix bug where __text section would get overwritten

Fixes a bug where the last written load command would accidentally
override the beginning of the __text section. Also defines missing
MachO constants and relocation structs/enums.

Signed-off-by: Jakub Konka <kubkon@jakubkonka.com>

```

## Parents

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

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