bug-binutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: weak extern behaves erratically


From: Ian Lance Taylor
Subject: Re: weak extern behaves erratically
Date: 05 Dec 2003 16:20:25 -0500
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2

Joe Korty <address@hidden> writes:

>  weak externs are too eager to be defined ==NULL when in fact there is
> a definition in a library they could be attached to.  They seem only to
> be willing to attach to definitions that have already been pulled in by
> some other means.  The attached script demonstrates the problem.

This is required by the ELF standard, and is part of the ELF
definition of weak symbols.

This came up recently on the binutils list:
    http://sources.redhat.com/ml/binutils/2003-11/msg00169.html

Ian




reply via email to

[Prev in Thread] Current Thread [Next in Thread]