[PATCH] D145308: [lld][WebAssembly] Initial support for stub objects

Sam Clegg via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sat Mar 4 10:40:14 PST 2023


sbc100 created this revision.
Herald added subscribers: pmatos, asb, wingo, ecnelises, sunfish, fedor.sergeev, jgravelle-google, dschuff.
Herald added a reviewer: MaskRay.
Herald added a project: All.
sbc100 requested review of this revision.
Herald added subscribers: llvm-commits, aheejin.
Herald added a project: LLVM.

See the docs in lld/docs/WebAssembly.rst for more on this.

This feature unlocks a lot of simplification in the emscripten toolchain
since we can represent the JS libraries to the compiler using stub
objects.

See https://github.com/emscripten-core/emscripten/issues/18875


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D145308

Files:
  lld/docs/WebAssembly.rst
  lld/test/wasm/Inputs/libstub-missing-dep.so
  lld/test/wasm/Inputs/libstub-missing-sym.so
  lld/test/wasm/Inputs/libstub.so
  lld/test/wasm/stub_object.s
  lld/wasm/Driver.cpp
  lld/wasm/InputFiles.cpp
  lld/wasm/InputFiles.h
  lld/wasm/Relocations.cpp
  lld/wasm/SymbolTable.cpp
  lld/wasm/SymbolTable.h
  lld/wasm/Symbols.cpp
  lld/wasm/Symbols.h
  lld/wasm/Writer.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D145308.502380.patch
Type: text/x-patch
Size: 14172 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230304/b074beea/attachment.bin>


More information about the llvm-commits mailing list