3.6.10 Options for Linking

The options tabulated below control linker operations and are discussed in the sections that follow. If any of the options -c, -S or -E are used, the linker is not run.

Table 3-21. Linking Options
Option

(links to explanatory section)

Controls
-llibrary Which library files are scanned
-nodefaultlibs Whether library code is linked with the project
-nostartfiles Whether the runtime startup module is linked in
-nostdlib Whether the library and startup code is linked with the project
-s Remove all symbol table and relocation information from the executable.
-uThe linking in of library modules so that symbol can be defined. It is legitimate to use -u multiple times with different symbols to force loading of additional library modules.
-Wl,option Options passed to the linker.
-Xlinker option System-specific options to passed to the linker