[PATCH] readelf: Add --dyn-sym option.

Florian Weimer fweimer@redhat.com
Tue Sep 3 07:44:00 GMT 2019


* Mark Wielaard:

> It is already possible to select the symbol table to print by name,
> using --symbols=SECTION. This allows printing the dynamic symbol table
> with --symbols=.dynsym. binutils readelf allows printing just the
> dynamic symbol table by type using --dyn-sym. Add the same option
> and document it. Also add a testcase to show --symbols=.dynsym and
> --dyn-sym produce the same output.

Note that this behavior is not the same as the binutils behavior.
There, --dyn-sym does not use the section header table to locate the
dynamic symbol table, but the dynamic segment.

Thanks,
Florian



More information about the Elfutils-devel mailing list