[PATCH] Skip dynamic relocations

H.J. Lu hjl.tools at gmail.com
Thu Mar 26 12:42:10 UTC 2015


On Thu, Mar 26, 2015 at 5:13 AM, Mark Wielaard <mjw at redhat.com> wrote:
> On Wed, 2015-03-25 at 09:00 -0700, H.J. Lu wrote:
>> Since r_offset in dynamic relocation isn't section relative, we can't
>> check it like relocations in relocatable objets.  This fixes:
>>
>> https://bugzilla.redhat.com/show_bug.cgi?id=1205789
>
> I don't believe this is a bug in eu-elflint. It is a bug in gnu ld,
> which we already work around when --gnu-ld is given. Which is what sets
> known_broken in the code you are patching. If set, that will already
> skip this test. See https://fedorahosted.org/elfutils/wiki/ElflintGNU
>

I assume all those test binaries in elfutils which elflint is run on don't have
dynamic relocations.

Given a binary, how do you know if --gnu-ld should be passed to elflint?

-- 
H.J.


More information about the elfutils-devel mailing list