# \.debug_line: don't rely on header_length field · gitcafe/zig

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

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

Visibility: public

Requested revision: 1ce6e201aa818b05f6637438d1c0b460ea817e3f

Requested commit: 1ce6e201aa818b05f6637438d1c0b460ea817e3f

Commit: 1ce6e201aa818b05f6637438d1c0b460ea817e3f

Tree: 6e4dee6d2077b442703ca3a0ba8bfb14daa5745d

Author: Andrew Kelley

Committer: Andrew Kelley

## Message

```
.debug_line: don't rely on header_length field

Empirically, debug info consumers do not respect this field, or otherwise
consider it to be an error when it does not point exactly to the end of the header.
Therefore we rely on the NOP jump at the beginning of the Line Number Program for
padding rather than this field.

llvm-dwarfdump says the line number data is fine; gdb and
binutils-readelf crap out.

```

## Parents

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

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