# debug: support loading elf debug info from external files · gitcafe/zig

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

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

Visibility: public

Requested revision: ea9917d9bd921f9fc14028a8dbf9e3f0f2579120

Requested commit: ea9917d9bd921f9fc14028a8dbf9e3f0f2579120

Commit: ea9917d9bd921f9fc14028a8dbf9e3f0f2579120

Tree: 5128a49e9c364c4b72b11c6d4afb14c35dcbcc6b

Author: kcbanner

Committer: kcbanner

## Message

```
debug: support loading elf debug info from external files

Some distributions (ie. Ubuntu) have their libc debug
info in separate files. This change allows the stack walking
code to read that debug info.

- add support for reading compressed ELF sections
- support reading the build-id from the elf headers in order to lookup external debug info
- support reading the .gnu_debuglink section to look up external debug info

```

## Parents

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

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