Linker definition files

In addition to overlay specification, EXE definition may be used to specify exports,resources to be bound, additional OBJ files to link, and several additional items.


LinkObjFirst objName;

This qualifier is used to specify that objName should be the first OBJfile processed during linking.  This is useful on some systems in order to specifya specific segment order.

objName is a fully qualified OBJ file name.

Note: This qualifier is only need for very special linking situations.


LinkObj objName {+ objName};

This qualifier is used to specify additional OBJ files to link.

objName is a (or series of) fully qualified OBJ file name(s).

Note: This qualifier is only need for very special linking situations.


LinkLib libName {+ libName};

This qualifier is used to specify additional LIB files to link.  This isuseful for specifying the C runtime library LIB file, when linking with C.

libName is a (or series of) fully qualified LIB file name(s).


NAME exeName

This qualifier is used to override the default exeName.

exeName is a fully qualified EXE file name.



This qualifier is used to designate the image file as a DLL and give it a nameof dllName.

dllName is a fully qualified DLL file name.



This qualifier inserts the specified text into the application or DLL.  IfDESCRIPTION is not specified, the default text is the name of the main output fileas specified in the command line.

text is a string of up to 255 characters enclosed in single or double quotationmarks.



This qualifier defines the size of the application or DLL"s local heap inbytes.  The default is that no local heap is created.  This value affectsthe size of the default data segment (DGROUP).

bytes is a decimal number.


STUB "fileName"

This qualifier adds a DOS executable file to the beginning of a segmented executablefile.  By default sblink adds a default stub to the front of a Win16 or DOSextended application.

fileName is a fully qualified STUB file name.



Use this qualifier to change the attributes of a section.

name specifies the section name.

Attribute Meaning
EXECUTE Allows code to be executed
READ Allows read operations on data
WRITE Allows write operations on data
SHARED Shares the section with all processes that load the image


EXPORTS {entryName [=internalName][@ordinal]}

This qualifier allows you to export a function from your program in order to allowother programs to call the function.  Exports are usually defined in a DLL.

entryName is the name of the function as used by a calling program.  Youcan optionally specify internalName, which is the name by which the functionis known in the defining program.  By default, InternalName is the sameas entryName.  The ordinal specifies an index into the exports tablein the range of 1 - 65535; if an ordinal is not specified sblink assigns one.


IMPORTS [internalName =] moduleName.entry

This qualifier defines names and locations of functions imported (usually froma DLL) by an application or DLL.  A definition is required for each functionbeing imported.  This statement is an alternative to resolving references througha resolution library.

internalName specifies the name of the function as it is used in the importingapplication or DLL.

moduleName is the file name of the exporting application or DLL which containsthe function.

entry specifies the name or ordinal value of the function being imported. If entry is an ordinal value the intenalName must be specified.