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: [PATCH] PR ld/18720: Properly merge non-default versioned symbol


On Mon, Jul 27, 2015 at 10:50 AM, Cary Coutant <ccoutant@gmail.com> wrote:
>>>> To me, this defines foo and foo@FOO.  Both points to the same
>>>> address.  This is how gas and ld work on symbol versioning for
>>>> a long time.  I don't think we should change it just because gold
>>>> behaves differently.
>>>
>>> OK, if you think that's correct behavior, you didn't answer why you
>>> still expect the call from bar() to bind to the foo() in the DSO.
>>
>> It is because foo@FOO in main is hidden from DSO.  It
>> will only be used by ld.so to resolve references to foo@FOO,
>> not the naked "foo".
>
> But you just said "this defines foo and foo@FOO"!

Yes, only for link-time, not for run-time.


-- 
H.J.


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