[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 15:36:20 PDT 2021


sbc100 added a comment.

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

> Looking at the `ld` documentation for export-dynamic-symbol:
>
>> When creating a dynamically linked executable, symbols matching glob will be added to the dynamic symbol table.
>
> We're applying this to statically linked executables too.
>
>> When creating a shared library, references to symbols matching glob will not be bound to the definitions within the shared library.
>
> We don't have the semantics of allowing symbols to be preempted like ELF does.
>
> I'm looking ahead to wasm-ld supporting new dynamic linking ABIs, which may be significantly different from ELF. So my preference here would be, if we have functionality which exactly matches ELF, it makes sense to reuse the ELF-specific names, otherwise we should use names which make sense for wasm on their own terms. Does that make sense?

So you think it would be preferable to go with `--export-if-defined` then, or something wasm specific?


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