[PATCH] D147190: [lld][WebAssembly] Process stub libraries before performing LTO

Sam Clegg via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Mar 29 17:12:21 PDT 2023


sbc100 created this revision.
Herald added subscribers: pmatos, asb, ormris, wingo, ecnelises, steven_wu, sunfish, hiraditya, jgravelle-google, inglorion, dschuff.
Herald added a project: All.
sbc100 requested review of this revision.
Herald added subscribers: llvm-commits, aheejin.
Herald added a project: LLVM.

There are cases where stub library processing can trigger new exports
which might require them to be included at LTO time.

Specifically `processStubLibraries` marks symbols as `forceExports`
which even effect the LTO process.

And since the LTO process can generate new undefined symbols
(specifically libcall function) we need to also process the stub
libraries after LTO.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D147190

Files:
  lld/test/wasm/lto/Inputs/foo.ll
  lld/test/wasm/lto/Inputs/stub.so
  lld/test/wasm/lto/stub-library.s
  lld/test/wasm/stub-library.s
  lld/test/wasm/stub_library.s
  lld/wasm/Driver.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D147190.509507.patch
Type: text/x-patch
Size: 5500 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230330/ddf33fde/attachment.bin>


More information about the llvm-commits mailing list