# wasm-linker: fix debug info relocation · gitcafe/zig

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

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

Visibility: public

Requested revision: 3f22bb96f393a81a33772bdeddce5fc660e4f667

Requested commit: 3f22bb96f393a81a33772bdeddce5fc660e4f667

Commit: 3f22bb96f393a81a33772bdeddce5fc660e4f667

Tree: f9745fdbf2053f283598db808e7304a82ec13df9

Author: Luuk de Gram

Committer: Luuk de Gram

## Message

```
wasm-linker: fix debug info relocation

This corrects calculating the offsets to the code section as we now
correctly allocate the code atoms during write taking the 'size' into
account. We also handle dead symbols which are garbage-collected by
writing -2 and -1 to skip ranges, loc and other sections respectively.

```

## Parents

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

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