LINK Help (linker.hlp) (Table of Contents; Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software, purely for historical purposes. If you're looking for up-to-date documentation, particularly for programming, you should not rely on the information found here, as it will be woefully out of date.
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.
                                    -♦-