3.6.11 Mapped Linker Options
The options listed below are commonly used linker options.
Option | Controls |
---|---|
-Wl,--gc-sections | Reclamation of unused memory through garbage collection. |
-Wl,-Map=mapfile | The generation of a linker map file. |
-Wl,--section-start=section=addr | Placement 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=address | The address allocated to the standard (.data ,
.bss , .text ) sections (see Changing and Linking the Allocated Section). |