DwarfDebug: Reduce code duplication for sec offset emission