[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:19:46 PDT 2018


sbc100 added a comment.

Emscripten uses --export in order to choose which symbols to export.   It does this for `main` too with `--export=main`.  We can't use `--undefined` in general since (for complicated reasons) some of these symbols might actually be missing at link time.

I ran into an issue within google where the `main` symbol ends up living a library (for gtest-based tests this is aften the case) and that resulting in main not being included in the output binary.


Repository:
  rLLD LLVM Linker

https://reviews.llvm.org/D50273





More information about the llvm-commits mailing list