about summary refs log tree commit diff
path: root/compiler/rustc_llvm/llvm-wrapper/Linker.cpp
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2022-02-26 21:53:03 +0000
committerbors <bors@rust-lang.org>2022-02-26 21:53:03 +0000
commit761e8884858759b21f3374ad610494e68c087a38 (patch)
tree02f62bd590cca268cd2c001bc7053a76fabd4971 /compiler/rustc_llvm/llvm-wrapper/Linker.cpp
parent10cc7a6d031fd607f594f4c7af113bfaa9a879e9 (diff)
parentb995dc944ce60087d77accd091e6ffb103030603 (diff)
downloadrust-761e8884858759b21f3374ad610494e68c087a38.tar.gz
rust-761e8884858759b21f3374ad610494e68c087a38.zip
Auto merge of #93516 - nagisa:branch-protection, r=cjgillot
No branch protection metadata unless enabled

Even if we emit metadata disabling branch protection, this metadata may
conflict with other modules (e.g. during LTO) that have different branch
protection metadata set.

This is an unstable flag and feature, so ideally the flag not being
specified should act as if the feature wasn't implemented in the first
place.

Additionally this PR also ensures we emit an error if
`-Zbranch-protection` is set on targets other than the supported
aarch64. For now the error is being output from codegen, but ideally it
should be moved to earlier in the pipeline before stabilization.
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/Linker.cpp')
0 files changed, 0 insertions, 0 deletions