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-03-04 12:33:35 +0000
committerbors <bors@rust-lang.org>2017-03-04 12:33:35 +0000
commit27918f32ad82b4feb72b33e47a7b9207a9d7a49b (patch)
treefe1de9f17039c21cea2a9364a4d13d7344c3b5be /src/libstd/sys/unix/stack_overflow.rs
parent73d31e3f7ba50d04d42ec78f2cc8641b3a50321e (diff)
parent111fbe7921a7de649a9b76b3f247fc8762217819 (diff)
downloadrust-27918f32ad82b4feb72b33e47a7b9207a9d7a49b.tar.gz
rust-27918f32ad82b4feb72b33e47a7b9207a9d7a49b.zip
Auto merge of #40245 - cuviper:maybe-not-pie, r=alexcrichton
Let `-Crelocation-model` better control `-pie` linking

Prior to this, if relocation model in the target options was "pic", as
most targets have it, then the user's `-Crelocation-model` had no effect
on whether `-pie` would be used.  Only `-Clink-arg=-static` would have a
further override here.

Now we use `context::get_reloc_model`, which gives precedence to the
user's option, and if it's `RelocMode::PIC` we enable `-pie`.  This is
the same test as `context::is_pie_binary`, except that folds across all
`sess.crate_types`, not just the current one.

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