# coff: do not use atoms for synthetic import address table · gitcafe/zig

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

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

Visibility: public

Requested revision: fb3345e346d26cfac01e45e3662385c587ec3462

Requested commit: fb3345e346d26cfac01e45e3662385c587ec3462

Commit: fb3345e346d26cfac01e45e3662385c587ec3462

Tree: 7e1d14e03b444e44ca163c7cb52f8426e66c01cc

Author: Jakub Konka

Committer: Jakub Konka

## Message

```
coff: do not use atoms for synthetic import address table

Instead, introduce a custom ImportTable structure which will
act as a thunk in the MachO linker, and we will use that to
calculate the address of a pointer on-the-fly.

Additionally, fix logic in writeImportTables to allow for multiple
DLLs.

```

## Parents

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

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