This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: PATCH: Linker failed to handle symbols with mismatched types
On Tue, Feb 28, 2006 at 04:51:20PM -0500, Daniel Jacobowitz wrote:
> On Tue, Feb 28, 2006 at 01:48:22PM -0800, H. J. Lu wrote:
> > When we create the default indirect symbol from the dynamic definition
> > with the default version, we should check if the type of exiting
> > regular definition matches. If not, we shouldn't create the default
> > indirect symbol.
>
> I don't follow why you believe this should work. The case in ld/2404
> sounds broken to me.
>
It depends on how you see it. Users may override many symbols
in the C library as long as they don't use the ones in the C library.
The C library tries very hard to support this. But the 3rd party DSO
may want to use the ones in the C library. My patch tries to address
this. Of course, it doesn't work if there is no symbol versioing or
those symbols are exported somehow.
H.J.