[llvm] r356102 - [WebAssembly] Improve support for "needed" list in dylink section
Sam Clegg via llvm-commits
llvm-commits at lists.llvm.org
Wed Mar 13 14:29:20 PDT 2019
Author: sbc
Date: Wed Mar 13 14:29:20 2019
New Revision: 356102
URL: http://llvm.org/viewvc/llvm-project?rev=356102&view=rev
Log:
[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
Modified:
llvm/trunk/lib/Object/WasmObjectFile.cpp
Modified: llvm/trunk/lib/Object/WasmObjectFile.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Object/WasmObjectFile.cpp?rev=356102&r1=356101&r2=356102&view=diff
==============================================================================
--- llvm/trunk/lib/Object/WasmObjectFile.cpp (original)
+++ llvm/trunk/lib/Object/WasmObjectFile.cpp Wed Mar 13 14:29:20 2019
@@ -324,6 +324,7 @@ Error WasmObjectFile::parseSection(WasmS
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);
More information about the llvm-commits
mailing list