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

Sam Clegg via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Mar 30 11:01:46 PDT 2023


sbc100 added a comment.

In D147190#4234179 <https://reviews.llvm.org/D147190#4234179>, @dschuff wrote:

> Do we really need to support stub libcalls (i.e. the kind that can be generated at codegen time)? These should just be compiler-rt and maybe a few core libc functions, right? Do we expect those to be implemented in JS and/or the environment?

Yes, we have use cases in emscripten where symbols that are created during LTO depend on other native symbols.   The one I can remember was emscripten exception handling I believe.   The compiler creates references to JS-defined functions at LTO time, which in tern require certain native exports (__cxa_is_pointer_type I believe).


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D147190/new/

https://reviews.llvm.org/D147190



More information about the llvm-commits mailing list