Controlling debug information in output files

Use the --debugonly option to remove the content of any code or data sections. This 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.

Note

You must use --elf with this option. Because you have to use --elf, you must also use --output.

Show/hideExample

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

Show/hideSee also

Copyright © 2010-2011 ARM. All rights reserved.ARM DUI 0477E
Non-ConfidentialID071611