This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: Warning about zero-sized dynamic symbols
Alan Modra <amodra@gmail.com> writes:
> On Sat, Mar 10, 2012 at 10:48:30AM -0800, Ian Lance Taylor wrote:
>> Alan Modra <amodra@gmail.com> writes:
>> > I think I added that code to fix a ld.so segfault when handling a copy
>> > reloc for a zero size symbol. So what should ld do here? Make a zero
>> > size entry in dynbss but omit any copy reloc?
>>
>> Yes, I think so. There is no reason to have a COPY reloc for a
>> zero-sized symbol.
>
> Done. We do have a slightly "interesting" case if only one zero size
> symbol is put in dynbss. In that case .dynbss gets eliminated and the
> symbol ends up with a zero address too.
Thanks!
Ian