[PATCH] readelf: Warn zero-sized relocation sections
H.J. Lu
hjl.tools@gmail.com
Fri Apr 17 17:57:04 GMT 2020
On Fri, Apr 17, 2020 at 8:46 AM Nick Clifton <nickc@redhat.com> wrote:
>
> Hi Guys,
>
> I am of a mind to allow this patch, given that one of readelf's
> main functions is to diagnose problems with ELF files. If these
> warnings really are a problem for users however then we could
> provide an option to filter them out.
>
> That said, the patch as it currently exists causes lots of new
> failures in the linker testsuite for various targets. Especially
> powerpc64-linux. There may well be others, eg alpha-linux-gnu,
> but my regression tester is still running. The failures are from
> messages like this:
>
> readelf: Warning: Section '.rela.plt': zero-sized relocation section
>
> and
>
> readelf: Warning: Section '.rela.dyn': zero-sized relocation section
>
> So H.J. if you want to persist with this feature you will need to
> either fix the tests or the check in readelf.
Hi Alan,
Any ideas why ppc64 backend generates zero-sized relocation section:
tmpdir/libcomm-data.so:
...
[ 5] .rela.dyn RELA 0000000000000160 000160
000000 18 A 3 0 8
...
Is this required by psABI?
--
H.J.
More information about the Binutils
mailing list