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.
Option (links to explanatory section) | Definition |
---|---|
-Wl,--dinit-compression=level | Linker option that applies optimizations of the specified level to the data initialization
template, which initializes objects and ramfunc
functions in RAM. |
-llibrary | Search the library named library when linking. |
-nodefaultlibs | Do not use the standard system libraries when linking. |
-nostdlib | Do not use the standard system start-up files or libraries when linking. |
-s | Remove all symbol table and relocation information from the output. |
-T |
Specify linker script |
-u symbol | Add an undefined symbol that will be present at link stage. |
-Wl,option | Pass options to the linker. |
-Xlinker option | Pass system-specific options to the linker. |