9.28 --execute_only

Adds the EXECONLY AREA attribute to all code sections.

Usage

The EXECONLY AREA attribute causes the linker to treat the section as execute-only.
It is the user's responsibility to ensure that the code in the section is safe to run in execute-only memory. For example:
  • The code must not contain literal pools.
  • The code must not attempt to load data from the same, or another, execute-only section.

Restrictions

This option is only supported for:
  • Processors that support the ARMv7-M architecture, such as Cortex-M3, Cortex-M4, and Cortex-M7.
  • Processors that support the ARMv6-M architecture.

    Note

    ARM has only performed limited testing of execute-only code on ARMv6-M targets.
Related reference
12.6 AREA
Related information
Execute-only memory
Building applications for execute-only memory
Non-ConfidentialPDF file icon PDF versionARM DUI0379G
Copyright © 2007, 2008, 2011, 2012, 2014, 2015 ARM. All rights reserved.