From 0499cca2fabe96fa6cd7b27aef274c9bf1f2a5de Mon Sep 17 00:00:00 2001 From: Nick Fitzgerald Date: Fri, 3 Sep 2021 15:45:59 -0700 Subject: [PATCH] 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`. --- crates/cranelift/src/obj.rs | 2 +- crates/jit/src/unwind/systemv.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/cranelift/src/obj.rs b/crates/cranelift/src/obj.rs index e8807834ec..a5acdc29d3 100644 --- a/crates/cranelift/src/obj.rs +++ b/crates/cranelift/src/obj.rs @@ -516,7 +516,7 @@ impl<'a> ObjectBuilder<'a> { let segment = self.obj.segment_name(StandardSegment::Data).to_vec(); let section_id = self.obj.add_section( segment, - b"_wasmtime_eh_frame".to_vec(), + b".eh_frame".to_vec(), SectionKind::ReadOnlyData, ); let mut cie = self diff --git a/crates/jit/src/unwind/systemv.rs b/crates/jit/src/unwind/systemv.rs index 31a34bc5cc..4ec9d4efcf 100644 --- a/crates/jit/src/unwind/systemv.rs +++ b/crates/jit/src/unwind/systemv.rs @@ -63,7 +63,7 @@ impl UnwindRegistration { } pub fn section_name() -> &'static str { - "_wasmtime_eh_frame" + ".eh_frame" } }