LINK Help (linker.hlp) (
Table of Contents;
Topic list)
DATA Statement
◄Up► ◄Contents► ◄Index► ◄Back►
─────LINK───────────────────────────────────────────────────────────────────
Syntax: DATA [attribute...]
Defines the default attributes for all data segments in the
application or DLL. DATA takes one or more optional attributes.
Each can appear once, in any order.
Attribute Purpose
◄<instance>► Sets DGROUP sharing attribute
◄<load>► Sets when data segment is loaded
◄<movable>► Sets whether segment is movable
◄<readonly>► Sets read status
◄<shared>► Sets whether segment is shareable
By default, all data segments have the following attributes:
SHARED LOADONCALL READWRITE FIXED
The SEGMENTS statement can override the defaults set by DATA.
See: ◄SEGMENTS Statement►
Example
DATA NONSHARED READONLY
This example sets defaults for the program's data segments.
-♦-