Skip to content

Commit 7a16015

Browse files
committed
Mark .debug_str as mergeable strings
Fixes #1496
1 parent 28950f3 commit 7a16015

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/debuginfo/object.rs

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,13 @@ impl WriteDebugInfo for ObjectProduct {
3939
let section_id = self.object.add_section(
4040
segment,
4141
name,
42-
if id == SectionId::EhFrame { SectionKind::ReadOnlyData } else { SectionKind::Debug },
42+
if id == SectionId::DebugStr {
43+
SectionKind::DebugString
44+
} else if id == SectionId::EhFrame {
45+
SectionKind::ReadOnlyData
46+
} else {
47+
SectionKind::Debug
48+
},
4349
);
4450
self.object
4551
.section_mut(section_id)

0 commit comments

Comments
 (0)