This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc 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: RFC: Add STB_GNU_SECONDARY


On Fri, Apr 20, 2012 at 12:50 PM, Roland McGrath <roland@hack.frob.com> wrote:
> Please provide an example that illustrates why you think you need this.
>

Currently we use weak undefined symbol, foo, to do

if (&foo != 0)
 foo is defined.
else
 foo isn't defined.

We want is to define foo as a secondary symbol so that
we can always use foo without checking.  If there is a primary
one in a .o file and .so file, we will get the primary one,
otherwise, we will use the secondary one.


-- 
H.J.


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