Closed
Description
For a project at Google, we need retpoline support. Taylor Cramer suggested I open an issue; my initial search didn't reveal any pre-existing issues that seemed particularly relevant. There was a reddit thread that stalled after identifying some blocking issues (LLD integration, LLVM upgrades, etc) all of which have, I believe, subsequently been addressed. https://www.reddit.com/r/rust/comments/7saomi/status_of_spectre_variant_2_mitigation_in_rust/
As I understand it, the heavy lifting for this is in LLVM and it simply needs to be plumbed through.
Put another way, just as clang provides -mretpoline
(https://reviews.llvm.org/D41723), I'm looking for something similar in the Rust toolchain.
Thanks!