FLAGS
Attribute (LOAD
)
The FLAGS
attribute specifies segment permissions as a
space separated list of the permissions in Segment Flags. By default, user defined segments receive
READ
, WRITE
, and
EXECUTE
permissions. The default flags for the predefined
segments described in Predefined Segments are
supplied by the link-editor, and in some cases can be platform-dependent.
There are three forms allowed.
FLAGS = segment_flags....; FLAGS += segment_flags....; FLAGS -= segment_flags....;
The simple "=
" assignment operator replaces the
current flags with the new set, the "+=
" form
adds the new flags to the existing set, and the
"-=
" form removes the specified flags from the
existing set.