From: Sam Clegg Date: Wed, 12 Dec 2018 23:44:59 +0000 (+0000) Subject: [WebAssembly] Add "needed" list to dylink section X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=e01c646ddaf76540880099402d7bbac4f188d10c;p=platform%2Fupstream%2Fllvm.git [WebAssembly] Add "needed" list to dylink section Differential Revision: https://reviews.llvm.org/D55613 llvm-svn: 348990 --- diff --git a/lld/wasm/Writer.cpp b/lld/wasm/Writer.cpp index 994b374..710f9cc 100644 --- a/lld/wasm/Writer.cpp +++ b/lld/wasm/Writer.cpp @@ -480,6 +480,7 @@ void Writer::createDylinkSection() { writeUleb128(OS, int(log2(MemAlign)), "MemAlign"); writeUleb128(OS, IndirectFunctions.size(), "TableSize"); writeUleb128(OS, 0, "TableAlign"); + writeUleb128(OS, 0, "Needed"); // TODO: Support "needed" shared libraries } // Create the custom "linking" section containing linker metadata.