-
-
Notifications
You must be signed in to change notification settings - Fork 14.8k
Retpoline support in rustc (target features or dedicated flags) #116852
Copy link
Copy link
Open
Labels
A-codegenArea: Code generationArea: Code generationC-feature-requestCategory: A feature request, i.e: not implemented / a PR.Category: A feature request, i.e: not implemented / a PR.PG-exploit-mitigationsProject group: Exploit mitigationsProject group: Exploit mitigationsT-compilerRelevant to the compiler team, which will review and decide on the PR/issue.Relevant to the compiler team, which will review and decide on the PR/issue.
Metadata
Metadata
Assignees
Labels
A-codegenArea: Code generationArea: Code generationC-feature-requestCategory: A feature request, i.e: not implemented / a PR.Category: A feature request, i.e: not implemented / a PR.PG-exploit-mitigationsProject group: Exploit mitigationsProject group: Exploit mitigationsT-compilerRelevant to the compiler team, which will review and decide on the PR/issue.Relevant to the compiler team, which will review and decide on the PR/issue.
Type
Fields
Give feedbackNo fields configured for issues without a type.
Currently:
seems to work as expected, but the features are unknown, and so since 1.61 they emit a warning:
Could/should these be added as known features to avoid using the target specification file?
In an old issue at #54637 it seems that back then dedicated flags were not intended (like Clang's
-mretpoline-external-thunkand GCC's-mindirect-branch=thunk-extern -mindirect-branch-register), which perhaps make a bit more sense.PR: #135927 (1.89).
PR: #140740 (1.91).
MCP: rust-lang/compiler-team#868 (
-Zretpolineand-Zretpoline-external-thunk).MCP: rust-lang/compiler-team#899 (
-Zindirect-branch-cs-prefix).