‑‑branch_protection
In this section:
Syntax
‑‑branch_protection={bti|pac-ret|bti+pac-ret}
Parameters
| Enables branch protection using Branch Target Identification. |
| Enables branch protection using Pointer Authentication for function return addresses. |
| Enables branch protection using both Branch Target Identification and Pointer Authentication. |
Description
Use this option to make the compiler generate code with support for branch protection using Branch Target Identification (BTI), Pointer Authentication (PAC), or both (PACBTI). In 64-bit mode, this option has no effect.
See also
Branch protection (PACBTI) — 32-bit mode only.
Caution
Project>Options>C/C++ Compiler>Code>Pointer authentication
Project>Options>C/C++ Compiler>Code>Branch target identification