Record the .eh_frame sections from each .o file.

This commit is contained in:
Nick Lewycky
2020-06-18 13:17:58 -07:00
parent 69ccd86b4a
commit 52eae576fc
4 changed files with 23 additions and 6 deletions

View File

@ -33,7 +33,7 @@ use wasmer_compiler::wasmparser::{MemoryImmediate, Operator};
use wasmer_compiler::{
to_wasm_error, wptype_to_type, CompileError, CompiledFunction, CustomSections,
FunctionBodyData, GenerateMiddlewareChain, MiddlewareBinaryReader, ModuleTranslationState,
RelocationTarget,
RelocationTarget, SectionIndex,
};
use wasmer_runtime::{MemoryPlan, ModuleInfo, TablePlan};
@ -76,7 +76,7 @@ impl FuncTranslator {
memory_plans: &PrimaryMap<MemoryIndex, MemoryPlan>,
_table_plans: &PrimaryMap<TableIndex, TablePlan>,
func_names: &SecondaryMap<FunctionIndex, String>,
) -> Result<(CompiledFunction, CustomSections), CompileError> {
) -> Result<(CompiledFunction, CustomSections, Vec<SectionIndex>), CompileError> {
// The function type, used for the callbacks.
let function = CompiledFunctionKind::Local(*local_func_index);
let func_index = wasm_module.func_index(*local_func_index);