# zld: fix num nlist calc when there's no dynsymtab · gitcafe/zig

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

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

Visibility: public

Requested revision: f9f792ab701a8aa3e3fb7b7b47b2b7c50b1bc9a2

Requested commit: f9f792ab701a8aa3e3fb7b7b47b2b7c50b1bc9a2

Commit: f9f792ab701a8aa3e3fb7b7b47b2b7c50b1bc9a2

Tree: 41fb0d36c5add8c70fa6a818b0575e9db8526dba

Author: Jakub Konka

Committer: Jakub Konka

## Message

```
zld: fix num nlist calc when there's no dynsymtab

Handle `__DATA,.rustc` section containing `rustc` metadata - this
is required to get crates like `serde_derive` link properly.
Note to self: this special section has to be copied __verbatim__
from the relocatable object file - this includes preserving its size
even though unpadded according the section's required alignment.

```

## Parents

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

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