about summary refs log tree commit diff
path: root/src/libstd/thread
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2018-10-06 10:44:11 +0000
committerbors <bors@rust-lang.org>2018-10-06 10:44:11 +0000
commitb4d9835f6c1ea0af804d11f79e329f76efd05df6 (patch)
tree8560c238e7d4613a389c61c2844f69989ae5ae59 /src/libstd/thread
parentac841e74502183cde08e462d98cc55752abd000a (diff)
parentc7f4f3ad75997c495de1ec91b6d714d1653412dd (diff)
downloadrust-b4d9835f6c1ea0af804d11f79e329f76efd05df6.tar.gz
rust-b4d9835f6c1ea0af804d11f79e329f76efd05df6.zip
Auto merge of #54766 - alexcrichton:wasm-all-symbols, r=michaelwoerister
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