ld Manual

ld Options
ld Manual529650.001
2-10
-d
-d
Specifies the starting virtual address of the data segment.
address
is a hexadecimal number (optionally prefixed by 0x), that specifies the starting
virtual address at which the data segment begins. ld rounds address up to a
multiple of 4096 (0x1000) bytes.
When creating a program file, the default value for address is 08000000. When
creating a DLL, the default value is set to the next multiple of 16384 (0x4000) bytes
after the end of the text area.
If you use -d, you must also use -t. If you use -d with -dll or -shared, the value of
address must be the next available address modulo 16384 after the text area in the
DLL.
HP recommends against using this flag when creating a DLL.
-dll or -shared
Directs ld to mark the loadfile specified in -o as a PIC DLL.
When you specify -dll or -shared, the exported symbols are those exported by
-export and -export_all, or those marked by the compiler to be exported. Any symbols
specified by -export_not are not exported.
You cannot use -dll or -shared with -call_shared. The default action is the action
for -call_shared.
-dllname or -soname
Directs ld to store the DLL name in the DLL being created. When this DLL is specified
in the link step of another loadfile, the DLL name stored in this DLL is placed in the
libList of the loadfile for later use by rld when searching for DLLs.
DLL_name
If the DLL being created will reside in the Guardian file system, DLL_name must
conform to Guardian file-name rules. If the DLL being created will reside in the
-d address
-dll | shared
{ -dllname | -soname } DLL_name