ld Manual

ld Manual529650.001
2-1
2 ld Options
An option consists of a flag and its parameters, if any. You use the ld options to
specify the input object file, control the ld environment, and control the format of ld
output. This section describes the syntax and semantics of ld options and provides
examples of each option.
Table 2-1. ld Flag Summary (page 1 of 4)
Flag Description
-allow_duplicate_procs
Directs ld not to report an error if more than one procedure
has the given name.
-allow_missing_libs
Prevents ld from stopping when it cannot find an archive or
library.
-allow_multiple_mains
Specifies that more than one procedure can have the MAIN
attribute.
-ansistreams
Specifies that C run-time library functions create files of type
180.
-bdllsonly
Directs ld to limit searches to libraries when resolving the file
names specified for the -l and -lib options.
-bdynamic
Directs ld to search for both libraries and archive files when
resolving -l and -lib options.
-bglobalized
Directs ld to use this sequence as its linker searchList when
resolving the file names specified for -l or -lib options:
1. The linker searchList itself
2. Libraries on the libList
3. Breadth-first transitive closure of libraries on the libList
4. Implicit libraries
-blocalized
Directs ld to use this sequence as its linker searchList when
resolving file names specified by -l or -lib options:
1. The linker searchList itself
2. Libraries on the libList
3. Breadth-first transitive closure of reexported libraries
4. Implicit libraries
-bsemi_globalized or
-bsymbolic
Directs ld to use this sequence as its linker searchList when
resolving file names specified by -l or -lib options:
1. The linker searchList itself
2. Libraries on the libList
3. Breadth-first transitive closure of libraries on the libList
4. Implicit libraries
-bstatic
Directs ld to search only for archive files when resolving -l
and -lib options.
-call_shared
Directs ld to mark the specified linkfile as the loadfile for a
program.