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:
Nick Fitzgerald
2021-09-03 15:45:59 -07:00
parent dd0bc3237e
commit 0499cca2fa
2 changed files with 2 additions and 2 deletions

View File

@@ -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

View File

@@ -63,7 +63,7 @@ impl UnwindRegistration {
} }
pub fn section_name() -> &'static str { pub fn section_name() -> &'static str {
"_wasmtime_eh_frame" ".eh_frame"
} }
} }