--only=section_name
Filters the list of sections that are displayed in the main section-by-section output from --text
. It does not affect any additional output after the main section-by-section output.
Syntax
--only=section_name
Where
is the name of the section to be
displayed.section_name
You can:
Use wildcard characters
?
and*
for a section name.Use multiple
--only
options to specify additional sections to display.
Examples
The following examples show how to use --only
:
To display only the symbol table,
.symtab
, from the section-by-section output, enter:fromelf --only=.symtab --text -s test.axf
To display all
ER
sections, enter:n
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