# macho: remove unresolved ref in the correct place · gitcafe/zig

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

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

Visibility: public

Requested revision: 6cf5305e47dd8382508f867b04067be615448b41

Requested commit: 6cf5305e47dd8382508f867b04067be615448b41

Commit: 6cf5305e47dd8382508f867b04067be615448b41

Tree: 3c70af183ca2fbf4151ce15b5a90ba5e30148241

Author: Jakub Konka

Committer: Jakub Konka

## Message

```
macho: remove unresolved ref in the correct place

* without this, when an included relocatable references a common symbol
  from another translation unit would not be correctly removed from
  the unresolved lookup table triggering a misleading assertion down
  the line
* assert upon removal that we indeed removed a ref instead of silently
  ignoring in debug
* add test case that covers this issue

```

## Parents

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

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