about summary refs log tree commit diff
path: root/src/libstd/sys/unix/stack_overflow.rs
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2017-10-20 23:08:17 +0000
committerbors <bors@rust-lang.org>2017-10-20 23:08:17 +0000
commit6511b4f7ee19fbc2e0dd98fa65f23fa11fece722 (patch)
tree3cee2a75681efe9d782f7045ed55be7a5cd2548b /src/libstd/sys/unix/stack_overflow.rs
parentb633341c49498488b6e3fce501e23e9f9f8fadec (diff)
parent3541ffb668c3b908aa5e3b6ba8a890d56a8360a7 (diff)
downloadrust-6511b4f7ee19fbc2e0dd98fa65f23fa11fece722.tar.gz
rust-6511b4f7ee19fbc2e0dd98fa65f23fa11fece722.zip
Auto merge of #45348 - alexcrichton:thinlto-timp, r=michaelwoerister
rustc: Add `_imp_` symbols later in compilation

On MSVC targets rustc will add symbols prefixed with `_imp_` to LLVM modules to
"emulate" dllexported statics as that workaround is still in place after #27438
hasn't been solved otherwise. These statics, however, were getting gc'd by
ThinLTO accidentally which later would cause linking failures.

This commit updates the location we add such symbols to happen just before
codegen to ensure that (a) they're not eliminated by the optimizer and (b) the
optimizer doesn't even worry about them.

Closes #45347
Diffstat (limited to 'src/libstd/sys/unix/stack_overflow.rs')
0 files changed, 0 insertions, 0 deletions