# macho: refactor dead code stripping conditions · gitcafe/zig

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

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

Visibility: public

Requested revision: 086cee844a082bab82dba9e7422067f644930309

Requested commit: 086cee844a082bab82dba9e7422067f644930309

Commit: 086cee844a082bab82dba9e7422067f644930309

Tree: 290f75decc67ffa008cfb4e5680c0ff730768778

Author: Jakub Konka

Committer: Jakub Konka

## Message

```
macho: refactor dead code stripping conditions

1. If an object file was not compiled with `MH_SUBSECTIONS_VIA_SYMBOLS`
   such a hand-written ASM on x86_64, treat the entire object file as
   not suitable for dead code stripping aka a GC root.
2. If there are non-extern relocs within a section, treat the entire
   section as a root, at least temporarily until we work out the exact
   conditions for marking the atoms live.

```

## Parents

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

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