Specify how undefined weak symbol should be resolved in executable

H.J. Lu hjl.tools@gmail.com
Fri Jan 1 00:00:00 GMT 2016


On Wed, Feb 24, 2016 at 7:30 AM, Michael Matz <matz@suse.de> wrote:
> Hi,
>
> On Wed, 24 Feb 2016, H.J. Lu wrote:
>
>> > Agreed. Anything that brings back weak symbols into the dynamic loader
>> > is going to be highly suspect to me, and require a lot of explaining.
>>
>> I was saying as far as ld was concerned, weak defined and non-weak
>> defined dynamic symbols would be treated equally at run-time.  Do you
>> agree with me?
>
> I at least don't.  The difference is that a defined weak symbol (at link
> edit time) might become undefined at runtime.  A defined non-weak symbol
> can't.  So they have to be handled differently.
>

How?

-- 
H.J.



More information about the Gnu-gabi mailing list