[WebAssembly] Add "needed" list to dylink section

Differential Revision: https://reviews.llvm.org/D55613

llvm-svn: 348990
This commit is contained in:
Sam Clegg 2018-12-12 23:44:59 +00:00
parent 03801256d8
commit e01c646dda

View File

@ -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.