GCC Newspaper
OCTOBER 6, 2026
Date
/
Architectures
Components
Topics
News & Policy
Other
testsuite

aarch64: Gate CFI/CFA tests on effective target support.

Test suite gates Control Flow Integrity tests on aarch64 based on target support for .cfi_ instructions.

Control Flow Integrity (CFI) and Control Flow Abstraction (CFA) related tests on the aarch64 architecture are now gated on the effective target’s support for .cfi_ instructions. This prevents these tests from running on targets that do not have the necessary capabilities, ensuring test suite stability and relevance. Several specific test files have been updated to reflect this new requirement.

In Details

In the GCC testsuite for aarch64, commit 15d60983ca428032c4a92fe9f195faa918ba5095 gates tests that rely on DWARF CFI (Control Flow Integrity) directives, specifically .cfi_ pseudo-instructions. This is managed by adding a dg-requires directive to relevant test files, ensuring they are only executed on configurations where the target backend effectively supports these DWARF unwind and CFI generation capabilities.

For Context
CFI
Control Flow Integrity, a security technique that aims to prevent attackers from altering the control flow of a program.
CFA
Control Flow Abstraction, often related to generating unwind information that describes how to restore the program state during function calls and returns.
.cfi_ instructions
Pseudo-instructions within the DWARF debugging information format used to describe the Call Frame Address (CFA) and control flow information, aiding in stack unwinding and debugging.
aarch64
A 64-bit ARM architecture, widely used in mobile devices and increasingly in servers and desktops.
dg-requires
A directive used in GCC's testsuite to specify prerequisites or target capabilities that must be met for a test to be executed.
Filed Under: testsuiteaarch64cfi