diff options
author | Sam Clegg <sbc@chromium.org> | 2020-11-16 10:11:37 -0800 |
---|---|---|
committer | Sam Clegg <sbc@chromium.org> | 2022-03-15 15:10:21 -0700 |
commit | 86c90f9bfdc4e9f02533196396a6ae363449b6a3 (patch) | |
tree | 53d11c1729f8426f9dd6365bc75978f3eb2a9baa /llvm/lib/CodeGen | |
parent | 7783de7fe32ad852b1921a2d2d0ae49b160865b1 (diff) | |
download | llvm-86c90f9bfdc4e9f02533196396a6ae363449b6a3.zip llvm-86c90f9bfdc4e9f02533196396a6ae363449b6a3.tar.gz llvm-86c90f9bfdc4e9f02533196396a6ae363449b6a3.tar.bz2 |
[lld][WebAssembly] Add --unresolved-symbols=import-dynamic
This is a new mode for handling unresolved symbols that allows all
symbols to be imported in the same that they would be in the case of
`-fpie` or `-shared`, but generting an otherwise fixed/non-relocatable
binary.
Code linked in this way should still be compiled with `-fPIC` so that
data symbols can be resolved via imports.
This essentially allows the building of static binaries that have
dynamic imports. See:
https://github.com/emscripten-core/emscripten/issues/12682
As with other uses of the experimental dynamic linking ABI, this
behaviour will produce a warning unless run with `--experimental-pic`.
Differential Revision: https://reviews.llvm.org/D91577
Diffstat (limited to 'llvm/lib/CodeGen')
0 files changed, 0 insertions, 0 deletions