[all-commits] [llvm/llvm-project] 2ea8a3: [lld][WebAssembly] Process stub libraries before p...

Sam Clegg via All-commits all-commits at lists.llvm.org
Thu Mar 30 14:27:37 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 2ea8a3a56a513484ee36c8ad12f93f35665321d1
      https://github.com/llvm/llvm-project/commit/2ea8a3a56a513484ee36c8ad12f93f35665321d1
  Author: Sam Clegg <sbc at chromium.org>
  Date:   2023-03-30 (Thu, 30 Mar 2023)

  Changed paths:
    A lld/test/wasm/lto/Inputs/foo.ll
    A lld/test/wasm/lto/Inputs/libcall.ll
    A lld/test/wasm/lto/Inputs/stub.so
    A lld/test/wasm/lto/stub-library-libcall.s
    A lld/test/wasm/lto/stub-library.s
    A lld/test/wasm/stub-library.s
    R lld/test/wasm/stub_library.s
    M lld/wasm/Driver.cpp

  Log Message:
  -----------
  [lld][WebAssembly] Process stub libraries before performing LTO

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.

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




More information about the All-commits mailing list