ld Manual

ld Options
ld Manual529650.001
2-11
-e
OSS file system, DLL_name must conform to OSS path name rules. To reside in
either file system, DLL_name must be an unqualified Guardian file identifier.
If you specify both a DLL_name and -o, the output loadfile file name is determined by
the -o specification, and DLL_name is saved in the DLL being created.
-e
Specifies the function at which the program is to begin executing when the program is
loaded. Without -e, the program begins executing at the function that has the MAIN
attribute.
function-name
is the name of the function at which the program is to begin executing when the
program is loaded.
-export
Directs ld to mark a symbol for export in the output loadfile in addition to those
normally marked.
symbol_name
is the name of the symbol to be exported by the DLL being created.
You can use -export with -export_not to create sets of symbols to be exported. The
symbol_name in -export cannot be the same as the symbol_name in
-export_not.
The default action is to export only those symbols marked by a compiler as requiring
export.
Note. Use only when linking a program (not a library) that will run without the standard run-
time support facilities and without linking a module such as CCPPMAIN (in the Guardian file
system) or ccppmain.o (in the OSS file system) that contains a function with the MAIN attribute.
-e function-name
-export symbol_name