From fff0198fb70c1ac4638d4265ed473776702a86da Mon Sep 17 00:00:00 2001 From: Yury Delendik Date: Wed, 31 Jul 2019 09:41:56 -0500 Subject: [PATCH] Fix RelocationTarget::JumpTable handling in wasm2obj (#195) --- wasmtime-obj/src/function.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/wasmtime-obj/src/function.rs b/wasmtime-obj/src/function.rs index d5ef06f52b..59d3fcf049 100644 --- a/wasmtime-obj/src/function.rs +++ b/wasmtime-obj/src/function.rs @@ -96,6 +96,9 @@ pub fn emit_functions( }) .map_err(|err| format!("{}", err))?; } + RelocationTarget::JumpTable(_, _) => { + // ignore relocations for jump tables + } _ => panic!("relocations target not supported yet: {:?}", r.reloc_target), }; }