# macho: fix LLVM codepaths in self-hosted linker · gitcafe/zig

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

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

Visibility: public

Requested revision: 372e9709ad2f4af24461f0fa601754a469091c2b

Requested commit: 372e9709ad2f4af24461f0fa601754a469091c2b

Commit: 372e9709ad2f4af24461f0fa601754a469091c2b

Tree: d989814d9c7665d41f8afa973fc00a91ba61b387

Author: Jakub Konka

Committer: Jakub Konka

## Message

```
macho: fix LLVM codepaths in self-hosted linker

* do not add linkage scope to aliased exported symbols - this is
  not respected on macOS
* special-case `MachO.openPath` in `link.File.openPath` as on macOS
  we always link with zld
* redirect to `MachO.flushObject` when linking relocatable objects
  in MachO linker whereas move the entire linking logic into
  `MachO.flushModule`

```

## Parents

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

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