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.
Option (links to explanatory section) | Controls |
---|---|
-mno-data-init | Suppression of the .dinit section and data
initialization. |
-llibrary | Which library files are scanned. |
-nodefaultlibs | Whether library code is linked with the project. |
-nostartfiles | Whether the runtime startup module is linked in. |
-nostdlib | Whether the library and startup code is linked with the project. |
-s | Remove all symbol table and relocation information from the executable. |
-T | The linker script to use with the build. |
-u | The 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,option | Options passed to the linker. |
-Xlinker option | System-specific options to passed to the linker. |