[PATCH] D101271: [lld][WebAssembly] Add support for `--export-dynamic-symbol`

Sam Clegg via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Apr 28 11:42:20 PDT 2021


sbc100 added a comment.

In D101271#2723352 <https://reviews.llvm.org/D101271#2723352>, @sunfish wrote:

> I'm a little confused by the name "export-dynamic-symbol". I understand it's an ELF flag, though it seems to have a slightly different meaning here. What would you think about adding a warning when using this flag is -experimental-pic isn't passed, similar to what we do with -shared?

This flag, although it has dynamic its is name, does not imply PIC ABI stuff or imply `-shared` or `-pie` so I don't think it makes sense to link it to `-experimental-pic`.   In works just like the existing `--export` flag but allows the symbol to be undefined.     I plan to use this in emscripten when we are doing static linking.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D101271



More information about the llvm-commits mailing list