3.6.11 Mapped Linker Options
The options tabulated below are commonly used linker options.
Option | Controls |
---|---|
-Wl,--no-data-init |
Generation of the .dinit section and data
initialization |
-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,-Tscript |
The linker script used when linking |
-Wl,-Tsection=address |
The address allocated to the standard (.data ,
.bss , .text ) sections (see 4.14.2 Changing and Linking the Allocated Section) |