# zld: fix incorrectly worked out section size · gitcafe/zig

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

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

Visibility: public

Requested revision: e17f12dd643e9edd90abb66b183d2a59eddc248c

Requested commit: e17f12dd643e9edd90abb66b183d2a59eddc248c

Commit: e17f12dd643e9edd90abb66b183d2a59eddc248c

Tree: 5d4b233b71c17ada1006ee1c246b07ed20da7f08

Author: Jakub Konka

Committer: Jakub Konka

## Message

```
zld: fix incorrectly worked out section size

Also, add a solution to a degenerate case where on x86_64 a relocation
refers to a cell in a section via section start address even though
a symbol exists. In such case, make the section spawned symbol an alias
of the actual symbol.

```

## Parents

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

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