Bug 1205789

Summary: Bogus dynamic relocation error from elflint
Product: [Fedora] Fedora Reporter: H.J. Lu <hongjiu.lu>
Component: elfutilsAssignee: Mark Wielaard <mjw>
Status: CLOSED NOTABUG QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 21CC: aoliva, fche, jakub, jan.kratochvil, mjw, mjw, pmachata, roland
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-03-26 14:22:24 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 H.J. Lu 2015-03-25 15:39:24 UTC
On x86-64, I got bogus error:

[hjl@gnu-tools-1 tests]$ eu-elflint /bin/ls
section [10] '.rela.plt': relocation 0: offset out of bounds
section [10] '.rela.plt': relocation 1: offset out of bounds
section [10] '.rela.plt': relocation 2: offset out of bounds
section [10] '.rela.plt': relocation 3: offset out of bounds
...

sh_info should be ignored for dynamic relocation since
r_offset isn't section relative.

Comment 1 Mark Wielaard 2015-03-26 08:54:07 UTC
I believe that is a bug in GNU binutils ld. When using eu-elflint --gnu-ld we ignore some known issues of that linker. See https://fedorahosted.org/elfutils/wiki/ElflintGNU

Comment 2 H.J. Lu 2015-03-26 12:15:16 UTC
Given a binary, we may not know which linker built it.  It makes
eu-elflint --gnu-ld kind of useless.

Comment 3 Mark Wielaard 2015-03-26 14:22:24 UTC
In general systems use one linker and linkers often share the same set of bugs with GNU ld.