indirect_branch_cs_prefix - The Rust Unstable Book

## Keyboard shortcuts

Press `←` or `→` to navigate between chapters

Press `S` or `/` to search in the book

Press `?` to show this help

Press `Esc` to hide this help

# `indirect-branch-cs-prefix`

The tracking issue for this feature is: https://github.com/rust-lang/rust/issues/116852.

Option `-Zindirect-branch-cs-prefix` controls whether a `cs` prefix is added to `call` and `jmp` to indirect thunks.

It is equivalent to Clang’s and GCC’s `-mindirect-branch-cs-prefix`. The Linux kernel uses it for RETPOLINE builds. For details, see LLVM commit 6f867f910283 (“[X86] Support `-mindirect-branch-cs-prefix` for call and jmp to indirect thunk”) which introduces the feature.

Only x86 and x86_64 are supported.