about summary refs log tree commit diff
path: root/src/libstd/thread
diff options
context:
space:
mode:
authorAlex Crichton <alex@alexcrichton.com>2018-10-02 13:49:51 -0700
committerAlex Crichton <alex@alexcrichton.com>2018-10-02 13:49:51 -0700
commitc7f4f3ad75997c495de1ec91b6d714d1653412dd (patch)
treed01dbe04ae41e7da219a8e7f1e5bee461723dc6c /src/libstd/thread
parentde3d640f59c4fa4a09faf2a8d6b0a812aaa6d6cb (diff)
downloadrust-c7f4f3ad75997c495de1ec91b6d714d1653412dd.tar.gz
rust-c7f4f3ad75997c495de1ec91b6d714d1653412dd.zip
wasm: Explicitly export all symbols with LLD
This commit fixes an oddity on the wasm target where LTO can produce
working executables but plain old optimizations doesn't. The compiler
already knows what set of symbols it would like to export, but LLD only
discovers this list transitively through symbol visibilities. LLD may
not, however, always find all the symbols that we'd like to export.

For example if you depend on an rlib with a `#[no_mangle]` symbol, then
if you don't actually use anything from the rlib then the symbol won't
appear in the final artifact! It will appear, however, with LTO. This
commit attempts to rectify this situation by ensuring that all symbols
rustc would otherwise preserve through LTO are also preserved through
the linking process with LLD by default.
Diffstat (limited to 'src/libstd/thread')
0 files changed, 0 insertions, 0 deletions