# zld: merge Stub with Dylib struct · gitcafe/zig

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

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

Visibility: public

Requested revision: 3cb6b6bd90c3b304bf771b37e974dd943c060e2b

Requested commit: 3cb6b6bd90c3b304bf771b37e974dd943c060e2b

Commit: 3cb6b6bd90c3b304bf771b37e974dd943c060e2b

Tree: aedd44c189f439fa852b16ad264bf1e6f86b2580

Author: Jakub Konka

Committer: Jakub Konka

## Message

```
zld: merge Stub with Dylib struct

After giving it more thought, it doesn't make sense to separate
the two structurally. Instead, there should be two constructors
for a Dylib struct: one from binary file, and the other from a stub
file. This cleans up a lot of code and opens the way for recursive
parsing of re-exports from a dylib which are a hard requirement for
native feel when linking frameworks.

```

## Parents

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

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