binutils readelf supports the -D flag, which restricts symbol output to the .dynsym section. For my interests, .dynsym is much more important than .symtab, and having both in the output confuses me from time to time.
This seems a duplicate of https://bugzilla.redhat.com/show_bug.cgi?id=444621 Although the summary doesn't immediately makes that clear.
Oh. It wasn't clear that “readelf -D” doesn't list .dynsym, but something else entirely.
(In reply to Florian Weimer from comment #2) > Oh. It wasn't clear that “readelf -D” doesn't list .dynsym, but something > else entirely. It does list it. Because .dynsym is (by convention) the allocated section that DT_SYMTAB points to. But maybe what you want is something like --symbols[=SECTION]? Which, if SECTION is provided, would only print the symbol table for the named section instead of all of them (just like --strings[=SECTION]).
(In reply to Mark Wielaard from comment #3) > (In reply to Florian Weimer from comment #2) > > Oh. It wasn't clear that “readelf -D” doesn't list .dynsym, but something > > else entirely. > > It does list it. Because .dynsym is (by convention) the allocated section > that DT_SYMTAB points to. It's not sorted by symbol index, which makes some use cases more difficult. For others, it does not matter. > But maybe what you want is something like --symbols[=SECTION]? Which, if > SECTION is provided, would only print the symbol table for the named section > instead of all of them (just like --strings[=SECTION]). Oh, that would be helpful, yes.
(In reply to Florian Weimer from comment #4) > (In reply to Mark Wielaard from comment #3) > > But maybe what you want is something like --symbols[=SECTION]? Which, if > > SECTION is provided, would only print the symbol table for the named section > > instead of all of them (just like --strings[=SECTION]). > > Oh, that would be helpful, yes. https://lists.fedorahosted.org/archives/list/elfutils-devel@lists.fedorahosted.org/message/T4E2CTA6MNY2EAS6V42WXJV5OQIGKFLQ/
elfutils-0.168-1.fc25 has been submitted as an update to Fedora 25. https://bodhi.fedoraproject.org/updates/FEDORA-2016-0cdc2d3b14
elfutils-0.168-1.fc25 has been pushed to the Fedora 25 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2016-0cdc2d3b14
elfutils-0.168-1.fc25 has been pushed to the Fedora 25 stable repository. If problems still persist, please make note of it in this bug report.
elfutils-0.168-1.fc24 has been submitted as an update to Fedora 24. https://bodhi.fedoraproject.org/updates/FEDORA-2017-6c9a495a48
elfutils-0.168-1.fc24 has been pushed to the Fedora 24 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2017-6c9a495a48
elfutils-0.168-1.fc24 has been pushed to the Fedora 24 stable repository. If problems still persist, please make note of it in this bug report.