On Thu, 2015-03-26 at 05:42 -0700, H.J. Lu wrote:
I assume all those test binaries in elfutils which elflint is run on
don't have
dynamic relocations.
Some do. See the tests/run-elflint-*.sh which do pass --gnu-ld when
necessary.
Given a binary, how do you know if --gnu-ld should be passed to
elflint?
If it reports errors for issues that are listed under known bugs with
GNU ld
https://fedorahosted.org/elfutils/wiki/ElflintGNU then you might
want to pass --gnu-ld to make sure it isn't a known issue.
Cheers,
Mark