Bug 1205789 - Bogus dynamic relocation error from elflint
Summary: Bogus dynamic relocation error from elflint
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: elfutils
Version: 21
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Mark Wielaard
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-03-25 15:39 UTC by H.J. Lu
Modified: 2015-03-26 14:22 UTC (History)
8 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-03-26 14:22:24 UTC


Attachments (Terms of Use)

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.


Note You need to log in before you can comment on or make changes to this bug.