[PATCH] readelf: Warn zero-sized relocation sections
Alan Modra
amodra@gmail.com
Sat Apr 18 00:26:01 GMT 2020
On Fri, Apr 17, 2020 at 10:57:04AM -0700, H.J. Lu wrote:
> 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?
No, it just looks to be something that isn't tidied. The .rela.dyn
output section is created due to .rela.branch_lt being created as a
dynamic section, and not being sized early enough for
size_dynamic_sections to set SEC_EXCLUDE. I'll see if I can make it
go away.
--
Alan Modra
Australia Development Lab, IBM
More information about the Binutils
mailing list