4.6.11 Options for Linking

The options shown in the table below control linker operations and are discussed in the sections that follow.

Table 4-29. Linking Options
Option

(links to explanatory section)

Controls
-llibraryWhich library files are scanned.
-m[no-]clinkGenerate and use linker options relevant for C programs.
-mserial=optionsThe insertion of a serial number in the output.
-nodefaultlibsWhether library code is linked with the project.
-nostartfilesWhether the runtime startup module is linked.
-nostdlibWhether the library and startup code is linked with the project.
-Wl,optionOptions to passed to the linker.
-Xlinker optionSystem-specific options to passed to the linker.
--fill=optionsFilling of unused memory.