3.6.10 Options for Linking

The options listed below control linker operations and are discussed in following sections. 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
-mno-data-initSuppression of the .dinit section and data initialization.
-llibraryWhich library files are scanned.
-nodefaultlibsWhether library code is linked with the project.
-nostartfilesWhether the runtime startup module is linked in.
-nostdlibWhether the library and startup code is linked with the project.
-sRemove all symbol table and relocation information from the executable.
-TThe linker script to use with the build.
-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,optionOptions passed to the linker.
-Xlinker optionSystem-specific options to passed to the linker.