ld Manual

ld Options
ld Manual529650.001
2-2
-change Changes a run-time attribute to a specified value in an existing
object file.
-d
Specifies the hexadecimal virtual address at which the data
segment starts.
-dll or -shared
Directs ld to mark the file specified in -o as a PIC program.
-dllname or -soname
Directs ld the DLL name to store in the DLL being created.
-e
Identifies 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.
-export_all
Directs ld to mark for export in the output loadfile all symbols
in the external symbol table that are not one of these:
multiext
Global constructors (starting with __sti__)
Global destructors (starting with __std__)
Initialization functions (starting with __INIT__)
Termination functions (starting with __TERM__)
-export_not
Directs ld not to mark a symbol for export in the output
loadfile.
-first_l
Directs ld to use the specified path name when searching for
libraries.
-fl or -obey
Specifies the name of an ld command file containing ld
command tokens.
-include_whole or
-no_include_whole
Directs ld whether to include in the loadfile all linkable archive
members of all archive libraries between this flag and the next
library search control flag in the command stream.
-l or -lib
Specifies a library or archive file to use to resolve external
references from the executable file being linked.
-L or -libvol
Specifies a location to search for a library or archive file
specified by a simple file name in -l and -lib options.
-libname
Associates a DLL as a native user library with an executable
native program file.
-limit_runtime_paths
Directs ld to mark the loadfile so that rld will omit certain
locations when searching for libraries or archives to resolve
symbols.
-m or -map
Directs ld to produce a memory map of the PIC program or
DLL being created.
-no_optional_lib or
-optional_lib
Specifies whether needed libraries in the command stream
between this flag and the next optional library control flag are
to be included in the output loadfile libList.
Table 2-1. ld Flag Summary (page 2 of 4)
Flag Description