|Non-Confidential||PDF version||ARM DUI0472M|
|Home > Compiler Command-line Options > --execute_only|
Generates execute-only code by adding the
EXECONLY attribute to the
AREA directive for all code sections, preventing the compiler from generating any data accesses to code sections.
To keep code and data in separate sections, the compiler disables literal pools and branch tables. That is, specifying
--execute_only implicitly specifies the following compiler options:
Execute-only code must be Thumb code.
Execute-only code is only supported for:
Processors that support the ARMv6-M architecture.
If your application calls library functions, the library objects included in the image are not execute-only compliant. You must ensure these objects are not assigned to an execute-only memory region.