-Xlinker --gc-sections

IDE Equivalent

GCC C Linker > General > Remove unused sections

Syntax

-Xlinker --gc-sections

Arguments

None

Default

OFF

Description

Removes unused sections of code and data from the sources.

For more complete information about compiler optimizations, see our Optimization Notice.