9.95 --remove, --no_remove

Enables or disables the removal of unused input sections from the image.


An input section is considered used if it contains an entry point, or if it is referred to from a used section.
Use --no_remove when debugging to retain all input sections in the final image even if they are unused.
Use --remove with the --keep option to retain specific sections in a normal build.


The default is --remove.
Related concepts
4.3 Elimination of unused sections
3.9 How the linker performs library searching, selection, and scanning
4.1 Elimination of common debug sections
4.2 Elimination of common groups or sections
4.4 Elimination of unused virtual functions
Related reference
9.62 --keep=section_id
Non-ConfidentialPDF file icon PDF versionARM DUI0377G
Copyright © 2007, 2008, 2011, 2012, 2014, 2015 ARM. All rights reserved.