5.7.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 will not be executed.

Table 5-18. Linking Options
OptionDefinition
-Wl,--dinit-compression=levelLinker option that applies optimizations of the specified level to the data initialization template, which initializes objects and ramfunc functions in RAM.
--fill=optionsA memory-fill option to be passed on to the linker.

-llibrary

Search the library named library when linking.
-nodefaultlibsDo not use the standard system libraries when linking.
-mno-info-linkerSuppresses some linker advisory messages.
-nostdlibDo not use the standard system start-up files or libraries when linking.
-relaxed-mathLink in a relaxed-compliance math library.
-sRemove all symbol table and relocation information from the output.
-T scriptSpecify linker script.
-u symbolAdd an undefined symbol that will be present at link stage.
-Wl,optionPass options to the linker.
-Xlinker optionPass system-specific options to the linker.