Enables or disables the removal of unused input sections from the image.
Usage
An input section is considered used if it contains an entry point, or if it is referred to
from a used section.
By default, unused section elimination is disabled
when building dynamically linked libraries (DLLs) or shared
objects. Use --remove to enable
unused section elimination.
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.
Default
The default is --remove.
The default is --no_remove in any of these situations:
You specify --base_platform or --bpabi with --dll.
Arm’s Privacy Policy has been updated. By continuing to use our site, you consent to Arm’s Privacy Policy. Please review our Privacy Policy to learn more about our collection, use and transfers of your data.