From 8a89f2de31f740ab9c40c0b33804e16ebb81b90f Mon Sep 17 00:00:00 2001 From: Sam Clegg Date: Wed, 13 Mar 2019 21:29:20 +0000 Subject: [PATCH] [WebAssembly] Improve support for "needed" list in dylink section This change adds basic support for shared library dependencies via the dylink section. See https://github.com/WebAssembly/tool-conventions/pull/77 Differential Revision: https://reviews.llvm.org/D59237 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@356102 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Object/WasmObjectFile.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/Object/WasmObjectFile.cpp b/lib/Object/WasmObjectFile.cpp index 9d084bf4753..2ff2c555d5e 100644 --- a/lib/Object/WasmObjectFile.cpp +++ b/lib/Object/WasmObjectFile.cpp @@ -324,6 +324,7 @@ Error WasmObjectFile::parseSection(WasmSection &Sec) { Error WasmObjectFile::parseDylinkSection(ReadContext &Ctx) { // See https://github.com/WebAssembly/tool-conventions/blob/master/DynamicLinking.md + HasDylinkSection = true; DylinkInfo.MemorySize = readVaruint32(Ctx); DylinkInfo.MemoryAlignment = readVaruint32(Ctx); DylinkInfo.TableSize = readVaruint32(Ctx); -- 2.40.0