about summary refs log tree commit diff
path: root/src/test/ui/iterators/iter-sum-overflow-overflow-checks.rs
diff options
context:
space:
mode:
authorRalf Jung <post@ralfj.de>2020-06-06 21:57:39 +0200
committerGitHub <noreply@github.com>2020-06-06 21:57:39 +0200
commitd112d8bf3b6649ec02d1f6b725d2500e289473fe (patch)
tree9f83165f7d0305cdcd36f97c7c7253368456ac12 /src/test/ui/iterators/iter-sum-overflow-overflow-checks.rs
parentde4d5ce11e064cbca604d9bb891c00b94e1ec8f5 (diff)
parent071f0422c6dd897bc61891f96d4448df44d8069f (diff)
downloadrust-d112d8bf3b6649ec02d1f6b725d2500e289473fe.tar.gz
rust-d112d8bf3b6649ec02d1f6b725d2500e289473fe.zip
Rollup merge of #72708 - petrochenkov:linkhack, r=cuviper
linker: Add a linker rerun hack for gcc versions not supporting -static-pie

Which mirrors the existing `-no-pie` linker rerun hack, but the logic is a bit more elaborated in this case.

If the linker (gcc or clang) errors on `-static-pie` we rerun in with `-static` instead.
We must also replace CRT objects corresponding to `-static-pie` with ones corresponding to `-static` in this case.

(One sanity check for CRT objects in target specs is also added as a drive-by fix.)

To do in the future: refactor all linker rerun hacks into separate functions and share more code with `add_(pre,post)_link_objects`.

This PR accompanies https://github.com/rust-lang/rust/pull/71804 and unblocks https://github.com/rust-lang/rust/pull/70740.
Diffstat (limited to 'src/test/ui/iterators/iter-sum-overflow-overflow-checks.rs')
0 files changed, 0 insertions, 0 deletions