summaryrefslogtreecommitdiff
path: root/plugins/dwarf
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/dwarf')
-rw-r--r--plugins/dwarf/dwarf_import/src/lib.rs5
1 files changed, 5 insertions, 0 deletions
diff --git a/plugins/dwarf/dwarf_import/src/lib.rs b/plugins/dwarf/dwarf_import/src/lib.rs
index 7e4e10ee..d401f36f 100644
--- a/plugins/dwarf/dwarf_import/src/lib.rs
+++ b/plugins/dwarf/dwarf_import/src/lib.rs
@@ -555,6 +555,11 @@ fn parse_dwarf(
create_section_reader(section_id, view, eh_frame_endian, dwo_file)
};
let mut eh_frame = gimli::EhFrame::load(eh_frame_section_reader).unwrap();
+ if let Some(view_arch) = view.default_arch() {
+ if view_arch.name().as_str() == "aarch64" {
+ eh_frame.set_vendor(gimli::Vendor::AArch64);
+ }
+ }
eh_frame.set_address_size(view.address_size() as u8);
range_data_offsets = parse_unwind_section(view, eh_frame)
.map_err(|e| error!("Error parsing .eh_frame: {}", e))?;