Name unwind info .eh_frame in the Wasmtime's compiled ELF artifact
We were previously using `_wasmtime_eh_frame` but there is no good reason to add the prefix Wasmtime-specific prefix. Using the standard name allows for better inspection with standard tools like `dwarfdump`.
This commit is contained in:
@@ -516,7 +516,7 @@ impl<'a> ObjectBuilder<'a> {
|
|||||||
let segment = self.obj.segment_name(StandardSegment::Data).to_vec();
|
let segment = self.obj.segment_name(StandardSegment::Data).to_vec();
|
||||||
let section_id = self.obj.add_section(
|
let section_id = self.obj.add_section(
|
||||||
segment,
|
segment,
|
||||||
b"_wasmtime_eh_frame".to_vec(),
|
b".eh_frame".to_vec(),
|
||||||
SectionKind::ReadOnlyData,
|
SectionKind::ReadOnlyData,
|
||||||
);
|
);
|
||||||
let mut cie = self
|
let mut cie = self
|
||||||
|
|||||||
@@ -63,7 +63,7 @@ impl UnwindRegistration {
|
|||||||
}
|
}
|
||||||
|
|
||||||
pub fn section_name() -> &'static str {
|
pub fn section_name() -> &'static str {
|
||||||
"_wasmtime_eh_frame"
|
".eh_frame"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user