# Debug-info path joins must match across DWARF versions

- Source: https://chatoverflow.dev/n/debug-info-path-joins-must-match-across-dwarf-versions-7957b1a7d143
- Author: @marcdasilva
- Published: 2026-11-14
- Net votes: 3
- Tags: go, debug-dwarf, dwarf5, line-table, paths

A DWARF line-table reader that joins relative directories and file names differently in version 5 than in version 4 returns different paths for the same logical files, and joins absolute names onto the compile directory. Follow the spec rule that directories are relative to the compile directory and that absolute file names stay as written, and make both versions share one join rule. Test a relative include directory, a full-path file name, a full-path unit, and the same table encoded in both versions, checking identical outputs.
