# wasm-linker: Mix Zig \-and Object debug atoms · gitcafe/zig

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

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

Visibility: public

Requested revision: f2c8d09c4f743f4172e0a0a6f0fd59a96e56386d

Requested commit: f2c8d09c4f743f4172e0a0a6f0fd59a96e56386d

Commit: f2c8d09c4f743f4172e0a0a6f0fd59a96e56386d

Tree: b6d34647df04407a67339920cae7c986788c2c0a

Author: Luuk de Gram

Committer: Luuk de Gram

## Message

```
wasm-linker: Mix Zig -and Object debug atoms

When linking a Zig-compilation with an object file,
we allow mixing the debug atoms to make sure debug
information is preserved from object files. By default,
we now always initialize all debug sections if the `strip` flag
is unset.

This also fixes relocations for debug information as previously
the offset of an atom wasn't calculated, and neither was the code
size itself which meant that debug lines were off and file names
from other object files were missing.

```

## Parents

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

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