9.27 --execstack, --no_execstack

Generates a .note.GNU-stack section marking the stack as either executable or non-executable.

You can also use the AREA directive to generate either an executable or non-executable .note.GNU-stack section. The following code generates an executable .note.GNU-stack section. Omitting the CODE attribute generates a non-executable .note.GNU-stack section.
    AREA    |.note.GNU-stack|,ALIGN=0,READONLY,NOALLOC,CODE
In the absence of --execstack and --no_execstack, the .note.GNU-stack section is not generated unless it is specified by the AREA directive.
If both the command-line option and source directive are used and are different, then the stack is marked as executable.

Table 9-3 Specifying a command-line option and an AREA directive for GNU-stack sections

 
--execstack command-line option
--no_execstack command-line option
execstack AREA directive
execstack
execstack
no_execstack AREA directive
execstack
no_execstack
Related reference
12.6 AREA
Non-ConfidentialPDF file icon PDF versionARM DUI0379G
Copyright © 2007, 2008, 2011, 2012, 2014, 2015 ARM. All rights reserved.