This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Solving symbols from different shared objects?


> diff --git a/gold/symtab.cc b/gold/symtab.cc
> index b31794a..cdeef7f 100644
> --- a/gold/symtab.cc
> +++ b/gold/symtab.cc
> @@ -881,7 +881,7 @@
> Symbol_table::define_default_version(Sized_symbol<size>* sym,
>                && sym->is_from_dynobj())
>         ;
>        else if (pdef->second->is_from_dynobj()
> -              && sym->is_from_dynobj()
> +              && sym->is_from_dynobj() && pdef->second->is_defined()
>                && pdef->second->object() != sym->object())
>          ;
>        else
>
> Do you think this is a a reasonable fix?

Yes, this is actually the exact fix I was already testing. I'll go
ahead and commit it.

Thanks!

-cary


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]