http://sourceware.org/bugzilla/show_bug.cgi?id=15200
--- Comment #17 from pete <petechou at gmail dot com> 2013-03-20 05:54:20 UTC
---
(In reply to comment #16)
> (In reply to comment #15)
> > I think that is what my patch does. Did I get it wrong?
And we should return NULL if oldsym->in_reg() is true instead?
if (oldsym == NULL)
return NULL;
if (oldsym->source() == Symbol::IS_UNDEFINED)
;
else if (oldsym->in_reg())
return NULL;
else if (oldsym->is_from_dynobj())
;
else
return NULL;
>
> I'm thinking the patch does the same thing as mine.
>
> I have 2 questions:
> 1. in_reg() and in_dyn() seem to be mutual exclusive?
> 2. is it possible to see in_dyn() and is_from_dynobj() return different truth
> values for a symbol?
> Did I misunderstand something?
>
> >
> > I think it probably makes sense in general to create an only_if_ref
> > linker-defined symbol if there is a ref in the regular objects and a
> > definition
> > in a shared object.
--
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
_______________________________________________
bug-binutils mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/bug-binutils