Bug 249490
Summary: | dwfl_module_addrsym misses nested symbols | ||||||
---|---|---|---|---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Andrew Cagney <cagney> | ||||
Component: | elfutils | Assignee: | Roland McGrath <roland> | ||||
Status: | CLOSED ERRATA | QA Contact: | Fedora Extras Quality Assurance <extras-qa> | ||||
Severity: | low | Docs Contact: | |||||
Priority: | low | ||||||
Version: | 7 | ||||||
Target Milestone: | --- | ||||||
Target Release: | --- | ||||||
Hardware: | All | ||||||
OS: | Linux | ||||||
Whiteboard: | |||||||
Fixed In Version: | 0.129-1.fc7 | Doc Type: | Bug Fix | ||||
Doc Text: | Story Points: | --- | |||||
Clone Of: | Environment: | ||||||
Last Closed: | 2007-08-29 17:30:50 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: | |||||||
Bug Depends On: | |||||||
Bug Blocks: | 173278 | ||||||
Attachments: |
|
Description
Andrew Cagney
2007-07-25 01:37:26 UTC
Created attachment 160041 [details]
Candidate fix
Ignore the printf's :-)
This gives a better fuzzy match. Notice how it looks at the symbol's end, not start. If this matches a sized symbol it is later discarded. /* Save the symbol which is "closer". Use the end-address so that a sized symbol that ends closer to an unsized symbol wins (unsized symbols are typically created using hand-written assembler). */ if (sym.st_value + sym.st_size >= closest_sym->st_value + closest_sym->st_size && same_section (&sym, shndx)) { closest (); continue; } } elfutils-0.129-1.fc7 has been pushed to the Fedora 7 testing repository. If problems still persist, please make note of it in this bug report. elfutils-0.129-1.fc7 has been pushed to the Fedora 7 stable repository. If problems still persist, please make note of it in this bug report. |