Bug 444621

Summary: RFE: list symbols in DT_HASH ad DT_GNU_HASH tables (implement eu-readelf -D)
Product: [Fedora] Fedora Reporter: John Reiser <jreiser>
Component: elfutilsAssignee: Mark Wielaard <mjw>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: low Docs Contact:
Priority: low    
Version: rawhideCC: fweimer, mjw, mpolacek
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: elfutils-0.190-1.fc39 elfutils-0.190-1.fc38 elfutils-0.190-1.fc37 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2023-11-10 01:45:33 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:57:05 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 than necessary to
document or debug problems involving runtime dynamic symbol lookup.


Version-Release number of selected component (if applicable):
elfutils-0.133-3.fc9.i386


How reproducible: always


Steps to Reproduce:
1. eu-readelf --all /bin/date
2.
3.
  
Actual results: does not contain any list or designation for which symbols
appear in the DT_HASH or DT_GNU_HASH tables.  


Expected results: some method to identify which symbols appear in DT_HASH and
DT_GNU_HASH tables.


Additional info:

Comment 1 Roland McGrath 2008-04-29 21:48:19 UTC
binutils readelf has the -D option, e.g. -D -s

Would the same feature in eu-readelf meet the need?

Comment 2 John Reiser 2008-04-29 23:58:44 UTC
I'd like an "independent" confirmation about which symbols are pointed to by the
DT_GNU_HASH table.  binutils "readelf -D -s" claims to list what is in the
ElfXX_Section .gnu.hash, which is not necessarily the same as what is in the
DT_GNU_HASH table.  Perhaps it is expected and/or intended that .gnu.hash
correspond to DT_GNU_HASH, but I'm worried about bugs.

Comment 3 Roland McGrath 2008-04-30 01:36:58 UTC
It may not be documented clearly, but the actual implementation of -D in
binutils readelf uses PT_DYNAMIC->DT_* for DT_{GNU_,}HASH, DT_SYMTAB, DT_RELA,
etc., rather than going from section headers as normal  An eu-readelf -D would
do the same.

Comment 4 John Reiser 2008-04-30 13:54:48 UTC
Generating the output using PT_DYNAMIC->DT_* for DT_{GNU_,}HASH, DT_SYMTAB, etc.
is fine.  What is not OK is using any ElfXX_Section info, except possibly as a
comment such as "DT_SYMTAB matches {.gnu.hash}.sh_offset".

Comment 5 Fedora Update System 2023-11-03 23:14:17 UTC
FEDORA-2023-70de8a8207 has been submitted as an update to Fedora 39. https://bodhi.fedoraproject.org/updates/FEDORA-2023-70de8a8207

Comment 6 Fedora Update System 2023-11-05 21:38:09 UTC
FEDORA-2023-70de8a8207 has been pushed to the Fedora 39 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2023-70de8a8207`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2023-70de8a8207

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 7 Fedora Update System 2023-11-10 01:45:33 UTC
FEDORA-2023-70de8a8207 has been pushed to the Fedora 39 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 8 Fedora Update System 2023-11-10 12:31:32 UTC
FEDORA-2023-0568d68196 has been submitted as an update to Fedora 38. https://bodhi.fedoraproject.org/updates/FEDORA-2023-0568d68196

Comment 9 Fedora Update System 2023-11-10 12:32:11 UTC
FEDORA-2023-0862a2ca46 has been submitted as an update to Fedora 37. https://bodhi.fedoraproject.org/updates/FEDORA-2023-0862a2ca46

Comment 10 Fedora Update System 2023-11-11 04:36:16 UTC
FEDORA-2023-0568d68196 has been pushed to the Fedora 38 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2023-0568d68196`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2023-0568d68196

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 11 Fedora Update System 2023-11-11 04:38:05 UTC
FEDORA-2023-0862a2ca46 has been pushed to the Fedora 37 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2023-0862a2ca46`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2023-0862a2ca46

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 12 Fedora Update System 2023-11-24 03:46:28 UTC
FEDORA-2023-0568d68196 has been pushed to the Fedora 38 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 13 Fedora Update System 2023-11-25 01:37:33 UTC
FEDORA-2023-0862a2ca46 has been pushed to the Fedora 37 stable repository.
If problem still persists, please make note of it in this bug report.