From e2b9743f77139f0e36c5cc2362d6895d69e6c401 Mon Sep 17 00:00:00 2001 From: KyleMiles Date: Tue, 9 Jan 2024 17:52:34 -0500 Subject: DWARF Export : Fix compatibility with other tools (no longer using DWO names for DWO sections) --- rust/examples/dwarf/dwarf_export/src/lib.rs | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'rust/examples') diff --git a/rust/examples/dwarf/dwarf_export/src/lib.rs b/rust/examples/dwarf/dwarf_export/src/lib.rs index a122e94e..6af9afe2 100644 --- a/rust/examples/dwarf/dwarf_export/src/lib.rs +++ b/rust/examples/dwarf/dwarf_export/src/lib.rs @@ -703,11 +703,7 @@ fn write_dwarf( // Create section in output object let output_id = out_object.add_section( vec![], // Only machos have segment names? see object::write::Object::segment_name - input_id - .dwo_name() - .unwrap_or_else(|| input_id.name()) - .as_bytes() - .to_vec(), + input_id.name().as_bytes().to_vec(), SectionKind::Debug, // TODO: Might be wrong ); -- cgit v1.3.1