[PATCH] D50273: All lazy symbols to be exported with --export

Sam Clegg via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Aug 3 15:23:15 PDT 2018


sbc100 added a comment.

A bit more detail:  Emscripten has flag called "-s EXPORTED_FUNCTIONS=<list>".  By default this list includes just `main`.  But those symbols can either come from native code or from JS libraries, so they might not exist and link time.  Ideally we would know which ones we need at link time and with `--export=foo` and `--undefined=foo` which would force all these symbols to exist.  But right now we don't have that knowledge so we use `--allow-undefined` with `--export=foo`, which roughly equates to "export these symbols if they are found at link time but don't error out if they are not".


Repository:
  rLLD LLVM Linker

https://reviews.llvm.org/D50273





More information about the llvm-commits mailing list