--only=section_name

This option forces the output to display only the named section.

Show/hideSyntax

--only=section_name

Where section_name is the name of the section to be displayed.

You can:

  • use wildcard characters ? and * for a section name

  • use multiple --only options to specify additional sections to display.

Show/hideExample

The following examples show how to use --only:

  • To display only the symbol table, .symtab, enter:

    fromelf --only=.symtab --text -s test.axf

  • To display all ERn sections, enter:

    fromelf --only=ER? test.axf

  • To display the HEAP section and all symbol and string table sections, enter:

    fromelf --only=HEAP --only=.*tab --text -s -t test.axf

Show/hideSee also

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