# zld: redo symbol resolution in objects · gitcafe/zig

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

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

Visibility: public

Requested revision: 988b184d03fea3001b588ceb033de66a7d7ba21b

Requested commit: 988b184d03fea3001b588ceb033de66a7d7ba21b

Commit: 988b184d03fea3001b588ceb033de66a7d7ba21b

Tree: ba8cff5b4fc72af2b4a22cf5c850741232e9d4c5

Author: Jakub Konka

Committer: Jakub Konka

## Message

```
zld: redo symbol resolution in objects

Store only globals and undefs at the linker level, while all locals
stay scoped to the actual object file they were defined in. This is
fine since the relocations referencing locals will always be resolved
first using the local symbol table before checking for the reference
within the linker's global symbol table.

This also paves the way for proper symbol resolution from within static
and dynamic libraries.

```

## Parents

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

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