# dwarf: fix incorrect type reloc for unions · gitcafe/zig

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

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

Visibility: public

Requested revision: e05de31a5fa8105b09eed37c9d023501b1289cd1

Requested commit: e05de31a5fa8105b09eed37c9d023501b1289cd1

Commit: e05de31a5fa8105b09eed37c9d023501b1289cd1

Tree: 6e3d3b90970f46705d62c527dd9be0d28dece1fd

Author: Jakub Konka

Committer: Jakub Konka

## Message

```
dwarf: fix incorrect type reloc for unions

Split type relocs into two kinds: local and global. Global relocs
use a global type resolver and calculate offset to the existing
definition of a type abbreviation.

Local relocs use offset in the abbrev section of the containing
atom plus addend to generate a local relocation.

```

## Parents

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

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