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-19. Linking Options
Option

(links to explanatory section)

Definition
-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.
-llibrarySearch the library named library when linking.
-nodefaultlibsDo not use the standard system libraries when linking.
-nostdlibDo not use the standard system start-up files or libraries when linking.
-sRemove all symbol table and relocation information from the output.
-T Specify 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.