7.134 --remove_unneeded_entities, --no_remove_unneeded_entities

Controls whether debug information is generated for all source symbols, or only for those source symbols actually used.

Usage

Use --remove_unneeded_entities to reduce the amount of debug information in an ELF object. Faster linkage times can also be achieved.

Caution

Although --remove_unneeded_entities can help to reduce the amount of debug information generated per file, it has the disadvantage of reducing the number of debug sections that are common to many files. This reduces the number of common debug sections that the linker is able to remove at final link time, and can result in a final debug image that is larger than necessary. For this reason, use --remove_unneeded_entities only when necessary.

Restrictions

The effects of these options are restricted to debug information.

Default

The default is --no_remove_unneeded_entities.
Related information
The DWARF Debugging Standard, http://dwarfstd.org/
Non-ConfidentialPDF file icon PDF versionARM DUI0375E
Copyright © 2007, 2008, 2011, 2012, 2014 ARM. All rights reserved.