3.6.11 Mapped Linker Options

The options listed below are commonly used linker options.

Table 3-22. Mapped Linker Options
OptionControls
-Wl,--gc-sectionsReclamation of unused memory through garbage collection.
-Wl,-Map=mapfileThe generation of a linker map file.
-Wl,--section-start=section=addrPlacement of custom-named sections at the specified address. It cannot be used to place standard sections, like (.data, .bss, .text), which must be placed using a -Wl,-T option.
-Wl,-Tsection=addressThe address allocated to the standard (.data, .bss, .text) sections (see Changing and Linking the Allocated Section).