Skip to main content

IAR Embedded Workbench for Arm 9.70.x

‑‑branch_protection

In this section:
Syntax

‑‑branch_protection={bti|pac-ret|bti+pac-ret}

Parameters

bti

Enables branch protection using Branch Target Identification.

pac-ret

Enables branch protection using Pointer Authentication for function return addresses.

bti+pac-ret

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