diff options
| author | KyleMiles <krm504@nyu.edu> | 2024-01-09 17:52:34 -0500 |
|---|---|---|
| committer | KyleMiles <krm504@nyu.edu> | 2024-01-09 17:52:34 -0500 |
| commit | e2b9743f77139f0e36c5cc2362d6895d69e6c401 (patch) | |
| tree | 20738f8e388a750961926e7360da26446f054569 | |
| parent | 7df8225edc9bb62217b3864b5bc63b2698759d46 (diff) | |
DWARF Export : Fix compatibility with other tools (no longer using DWO names for DWO sections)
| -rw-r--r-- | rust/examples/dwarf/dwarf_export/src/lib.rs | 6 |
1 files changed, 1 insertions, 5 deletions
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<T: gimli::Endianity>( // 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 ); |
