[lld] r348990 - [WebAssembly] Add "needed" list to dylink section
Sam Clegg via llvm-commits
llvm-commits at lists.llvm.org
Wed Dec 12 15:44:59 PST 2018
Author: sbc
Date: Wed Dec 12 15:44:59 2018
New Revision: 348990
URL: http://llvm.org/viewvc/llvm-project?rev=348990&view=rev
Log:
[WebAssembly] Add "needed" list to dylink section
Differential Revision: https://reviews.llvm.org/D55613
Modified:
lld/trunk/wasm/Writer.cpp
Modified: lld/trunk/wasm/Writer.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/wasm/Writer.cpp?rev=348990&r1=348989&r2=348990&view=diff
==============================================================================
--- lld/trunk/wasm/Writer.cpp (original)
+++ lld/trunk/wasm/Writer.cpp Wed Dec 12 15:44:59 2018
@@ -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.
More information about the llvm-commits
mailing list