3.13 --debugonly

Removes the content of any code or data sections.

Usage

This option ensures that the output file contains only the information required for debugging, for example, debug sections, symbol table, and string table. Section headers are retained because they are required to act as targets for symbols.

Restrictions

You must use --elf with this option.

Example

To create an ELF file, debugout.axf, from the ELF file infile.axf, containing only debug information, enter:

fromelf --elf --debugonly --output=debugout.axf infile.axf
Non-ConfidentialPDF file icon PDF version100071_0609_00_en
Copyright © 2014–2017 Arm Limited (or its affiliates). All rights reserved.