Appendix A 305
Using Mapfiles
Defining Mapfile Segment Declarations
The default segment_flags for a LOADable segment is ?RWX.
Segment declarations support the following special flags:
Flag Action
RReadable
WWritable
XExecutable
Flag Action
sEnables static branch prediction on a segment. This flag is
not set by default. (Dynamic branch prediction is the default.)
lEnables lazy swap allocation for a segment. This flag is not
set by default. (The lazy swap is disabled by default.)
mSets the “modification” hint for a segment. When this flag is
set, it indicates that the program expects to modify the pages
in the segment. If not set, the program does not expect to
modify any pages in the segment, even though it may have
permission to do so. This flag is not set by default. (The
modification hint is off by default.)
cSets the “code” hint for a segment. When this flag is set, it
indicates that the segment mostly contains code that may be
executed. When not set, it indicates that it is unlikely that
the segment contains code. This flag is not set by default.
(The code hint is off by default.)