# std.debug.Dwarf: fix loading external debuginfo in the "\.debuglink" case\. · gitcafe/zig

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

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

Visibility: public

Requested revision: 7e966de45e06c42b40f5fd4b862c3d320a21a486

Requested commit: 7e966de45e06c42b40f5fd4b862c3d320a21a486

Commit: 7e966de45e06c42b40f5fd4b862c3d320a21a486

Tree: 4d006015907cfae9a08cd3d0d7dce1a9a79b5117

Author: Xavier Bouchoux

Committer: Xavier Bouchoux

## Message

```
std.debug.Dwarf: fix loading external debuginfo in the ".debuglink" case.
 - look up the debuglink file in the directory of the executable file (instead of the cwd)
 - fix parsing of debuglink section (the 4-byte alignement is within the file, unrelated to the in-memory address)

```

## Parents

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

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