diff --git a/src/debuginfo/object.rs b/src/debuginfo/object.rs index 7c873515a8f..1c6e471cc87 100644 --- a/src/debuginfo/object.rs +++ b/src/debuginfo/object.rs @@ -39,7 +39,7 @@ impl WriteDebugInfo for ObjectProduct { let section_id = self.object.add_section( segment, name, - if id == SectionId::DebugStr { + if id == SectionId::DebugStr || id == SectionId::DebugLineStr { SectionKind::DebugString } else if id == SectionId::EhFrame { SectionKind::ReadOnlyData