[PATCH] D91870: [WebAssembly] Linker detects need for function table via symbols

Andy Wingo via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Nov 20 08:03:00 PST 2020


wingo created this revision.
Herald added subscribers: llvm-commits, ecnelises, rupprecht, sunfish, hiraditya, jgravelle-google, sbc100, dschuff.
Herald added a reviewer: jhenderson.
Herald added a reviewer: MaskRay.
Herald added a project: LLVM.
wingo requested review of this revision.
Herald added a subscriber: aheejin.

Change to recognize the need for a function table via symbols.

To manage the transitional period in which the compiler doesn't yet
produce TABLE_NUMBER relocations and doesn't residualize table symbols,
the linker will treat the case in which there are tables but no symbols
as being the "before" state.  In that case it will synthesize symbols
for the defined and imported tables.

Depends on D91849 <https://reviews.llvm.org/D91849>.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D91870

Files:
  lld/include/lld/Common/LLVM.h
  lld/wasm/InputChunks.cpp
  lld/wasm/InputFiles.cpp
  lld/wasm/InputFiles.h
  lld/wasm/InputTable.h
  lld/wasm/MarkLive.cpp
  lld/wasm/SymbolTable.cpp
  lld/wasm/SymbolTable.h
  lld/wasm/Symbols.cpp
  lld/wasm/Symbols.h
  lld/wasm/SyntheticSections.cpp
  lld/wasm/SyntheticSections.h
  lld/wasm/Writer.cpp
  lld/wasm/WriterUtils.cpp
  lld/wasm/WriterUtils.h
  llvm/include/llvm/BinaryFormat/Wasm.h
  llvm/include/llvm/Object/Wasm.h
  llvm/lib/MC/WasmObjectWriter.cpp
  llvm/lib/Object/WasmObjectFile.cpp
  llvm/tools/llvm-readobj/WasmDumper.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D91870.306695.patch
Type: text/x-patch
Size: 35957 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20201120/91a1fc37/attachment.bin>


More information about the llvm-commits mailing list