Open System Services Shell and Utilities Reference Manual (G06.25+, H06.03+)

User Commands (k - l) ld(1)
-dll | -shared Tells ld to mark the loadle specied by lename7 as a PIC DLL. When you
specify the -dll or -shared ag, the exported symbols are those exported by the
-export_all or -export ags, or those marked by the compiler to be exported.
Any symbols specied by the -export_not ag are not exported.
You cannot use this ag when you use the -call_shared ag. The default action
is the action for the -call_shared ag.
You can specify this ag as often as you want in the command line or an obey
le. Each specication is processed when encountered.
{-dllname | -soname } DLL_name
Tells ld the DLL name to store in the DLL being created. When this DLL is
specied in the link step of another loadle, the DLL name stored in this DLL is
placed in the libList of the loadle for later use by rld when searching for DLLs.
If the DLL being created will reside in the Guardian le system, DLL_name must
conform to Guardian lename rules. If the DLL being created will reside in the
OSS le system, DLL_name must conform to OSS pathname rules. To reside in
either le system, DLL_name must be an unqualied Guardian le identier.
If you specify both a DLL_name and the -o ag, the output loadle lename is
determined by the -o specication and DLL_name is saved in the DLL being
created.
If you specify DLL_name but do not use the -o ag, the output loadle lename
uses the DLL_name value.
If you do not specify DLL_name but use the -o ag, the output loadle lename
is used as the DLL name stored in the DLL being created. Only the unqualied
part (rightmost part) of the output lename is used.
If you omit both a DLL_name and the -o ag, the output loadle lename and
DLL_name in the libList both default to a.out. HP recommends against using
this default value.
-e symbol_name1
Species a function identier. The specied function is the entry point, that is,
the point at which to begin executing the program when the program is loaded.
You should use this ag only when linking a program that will execute without
standard run-time support facilities and without linking a module such as
CCPPMAIN (in the Guardian le system) or ccppmain.o (in the OSS le sys-
tem) that contains a function with the MAIN attribute. Do not use this ag for
libraries.
-export symbol_name2
Tells ld to mark symbol_name2 for export in the output loadle in addition to
those normally marked. This ag can be used with the -export_not ag to create
sets of symbols to be exported.
symbol_name2 cannot be the same symbol as symbol_name3.
The default action is to export only those symbols marked by a compiler as
requiring export.
-export_all Tells ld to mark for export in the output loadle all symbols in the external sym-
bol table that are not one of the following:
multiext
527188-003 Hewlett-Packard Company 537