mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-23 12:24:34 +00:00
[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 llvm-svn: 356102
This commit is contained in:
parent
fcc568af0c
commit
30ab5034f3
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user