[PATCH] readelf: Warn zero-sized relocation sections
Nick Clifton
nickc@redhat.com
Fri Apr 17 15:46:49 GMT 2020
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.
Cheers
Nick
More information about the Binutils
mailing list