dwarf: support zero-terminators on linux