This is the mail archive of the
libc-alpha@sources.redhat.com
mailing list for the glibc project.
Re: Undefined weak symbol bug
- From: Roland McGrath <roland at redhat dot com>
- To: "H. J. Lu" <hjl at lucon dot org>
- Cc: GNU C Library <libc-alpha at sources dot redhat dot com>
- Date: Fri, 28 Mar 2003 19:32:11 -0800
- Subject: Re: Undefined weak symbol bug
I am not convinced there is any dynamic linker bug here. There are
definitely ld bugs. I don't see what would still be wrong if those were
fixed, however. Because of the hidden visiblity, both symbols ought to
have been resolved to zero at link time.
The "main_hidden" case shows an ld bug in producing a local .bss value in
the executable as if for a copy reloc. The R_386_NONE reloc generated is
probably the remnant of the R_386_COPY it thought it was going to produce.
The "shared_hidden" case shows an ld bug in producing a .dynsym entry at all
rather than resolving it to zero at link time.