Bug 1434050

Summary: readelf always produces an error on .debug files
Product: [Fedora] Fedora Reporter: Mark Wielaard <mjw>
Component: binutilsAssignee: Nick Clifton <nickc>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: dominik, jakub, nickc, orion
Target Milestone: ---Keywords: Reopened
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: binutils-2.27-21.fc26 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-04-01 17:26:13 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Mark Wielaard 2017-03-20 15:49:05 UTC
A sanity check for readelf dynamic segments always triggers for debuginfo files, even when no operation is done that prints information from the program headers or dynamic segment:

readelf: Error: the dynamic segment offset + size exceeds the size of the file

Unfortunately rpm does various invocations of readelf (-S or -n) on separate .debug files which have a NOBITS .dynamic section. Producing a build.log with lots of errors. That is slightly confusing.

Patch proposed upstream:
https://sourceware.org/ml/binutils/2017-03/msg00279.html

Comment 1 Nick Clifton 2017-03-20 17:41:18 UTC
Patched in:  binutils-2.28-5.fc27

Comment 2 Mark Wielaard 2017-03-20 23:27:45 UTC
Looks good thanks. The fc27 build.logs no longer contain spurious readelf error messages anymore. I would be nice if the same patch went into f26 to silence them there too.

Comment 3 Nick Clifton 2017-03-21 11:40:45 UTC
Done: binutils-2.27-21.fc26

Comment 4 Mark Wielaard 2017-03-21 18:37:10 UTC
(In reply to Nick Clifton from comment #3)
> Done: binutils-2.27-21.fc26

Thanks. If you submit an bohdi update (which are required now for f26) please let me know and I'll provide feedback.

Comment 5 Nick Clifton 2017-03-22 10:47:55 UTC
*** Bug 1412348 has been marked as a duplicate of this bug. ***

Comment 6 Fedora Update System 2017-03-22 11:43:10 UTC
binutils-2.27-21.fc26 has been submitted as an update to Fedora 26. https://bodhi.fedoraproject.org/updates/FEDORA-2017-519de08d5c

Comment 7 Nick Clifton 2017-03-22 11:44:41 UTC
(In reply to Mark Wielaard from comment #4)

> Thanks. If you submit an bohdi update (which are required now for f26)
> please let me know and I'll provide feedback.

I have created a bodhi update request:

  https://bodhi.fedoraproject.org/updates/FEDORA-2017-519de08d5c

Cheers
  Nick

Comment 8 Fedora Update System 2017-03-22 15:29:22 UTC
binutils-2.27-21.fc26 has been pushed to the Fedora 26 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-519de08d5c

Comment 9 Fedora Update System 2017-04-01 17:26:13 UTC
binutils-2.27-21.fc26 has been pushed to the Fedora 26 stable repository. If problems still persist, please make note of it in this bug report.