about summary refs log tree commit diff
path: root/src/debuginfo
diff options
context:
space:
mode:
authorbjorn3 <17426603+bjorn3@users.noreply.github.com>2024-07-13 18:39:03 +0000
committerbjorn3 <17426603+bjorn3@users.noreply.github.com>2024-07-13 18:39:03 +0000
commitd0d2e608865f3c8d624f23d552532574b00780dd (patch)
tree7c3ee52039635b199bf75801382c3b5056c929c1 /src/debuginfo
parent776ab988c1a1015ce1c6e840ea83b989940635fd (diff)
Merge commit '659243d85c7489412bd0faa1c068d904a6042941' into sync_cg_clif-2024-07-13
Diffstat (limited to 'src/debuginfo')
-rw-r--r--src/debuginfo/object.rs8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/debuginfo/object.rs b/src/debuginfo/object.rs
index 65f4c67b21f..1c6e471cc87 100644
--- a/src/debuginfo/object.rs
+++ b/src/debuginfo/object.rs
@@ -39,7 +39,13 @@ impl WriteDebugInfo for ObjectProduct {
         let section_id = self.object.add_section(
             segment,
             name,
-            if id == SectionId::EhFrame { SectionKind::ReadOnlyData } else { SectionKind::Debug },
+            if id == SectionId::DebugStr || id == SectionId::DebugLineStr {
+                SectionKind::DebugString
+            } else if id == SectionId::EhFrame {
+                SectionKind::ReadOnlyData
+            } else {
+                SectionKind::Debug
+            },
         );
         self.object
             .section_mut(section_id)