Non-Confidential | ![]() | 100067_0609_00_en | ||
| ||||
Home > armclang Command-line Options > -mexecute-only |
Generates execute-only code, and prevents 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 when using the -mexecute-only
option.
Execute-only code must be T32 code.
Execute-only code is only supported for:
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.
-mexecute-only
option.armclang
-mexecute-only
option. If you use the armclang
-flto
or -Omax
options, then the compiler cannot generate execute-only code and produces a warning.