Bug 444622

Summary: RFE: list symbols in DT_HASH and DT_GNU_HASH tables
Product: [Fedora] Fedora Reporter: John Reiser <jreiser>
Component: binutilsAssignee: Jakub Jelinek <jakub>
Status: CLOSED WORKSFORME QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: low Docs Contact:
Priority: low    
Version: rawhide   
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2008-04-29 16:45:52 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description John Reiser 2008-04-29 15:59:52 UTC
Description of problem: There is no way to inspect which symbols appear in the
DT_HASH or DT_GNU_HASH tables.  This makes it more difficult that necessary to
document or debug problems involving runtime dynamic symbol lookup.


Version-Release number of selected component (if applicable):
binutils-2.18.50.0.6-2.i386


How reproducible: always


Steps to Reproduce:
1. readelf --all /bin/date
2.
3.
  
Actual results: no designation of which symbols appear in DT_HASH or DT_GNU_HASH


Expected results: some designation of which symbols appear in DT_HASH or
DT_GNU_HASH tables.


Additional info:

Comment 1 Jakub Jelinek 2008-04-29 16:45:52 UTC
Apparenly you haven't tried readelf -Ds


Comment 2 John Reiser 2008-04-30 00:05:36 UTC
The usage documentation claims that "readelf -Ds" uses the dynamic section info
when displaying symbols, but the output says "Symbol table of '.gnu.hash'". 
Those could be two different collections of symbols, particularly if there are bugs.