[lld][WebAssembly] Add support for -Bsymbolic flag
authorSam Clegg <sbc@chromium.org>
Wed, 7 Oct 2020 21:48:37 +0000 (14:48 -0700)
committerSam Clegg <sbc@chromium.org>
Tue, 13 Oct 2020 00:25:04 +0000 (17:25 -0700)
commit2513407d39506edf2a98f647088a9e1789f8c418
tree78845ae5db9c6d26edd2ebde45eb6f4515dd1068
parentb215a26628feae349d663f687efe475d622970b7
[lld][WebAssembly] Add support for -Bsymbolic flag

This flag works in a similar way to the ELF linker in that it
will resolve any defined symbols to their local definition with
a shared library or -pie executable.

This flag has no effect on static linking.

Differential Revision: https://reviews.llvm.org/D89152
lld/test/wasm/bsymbolic.s [new file with mode: 0644]
lld/wasm/Config.h
lld/wasm/Driver.cpp
lld/wasm/Options.td
lld/wasm/Relocations.cpp
lld/wasm/SyntheticSections.cpp
lld/wasm/SyntheticSections.h
lld/wasm/Writer.cpp