This is the mail archive of the libc-alpha@sources.redhat.com 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: PATCH: BZ 464: IA64 math functions aren't weak


On Tue, Oct 26, 2004 at 01:46:30PM -0700, Ulrich Drepper wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> H. J. Lu wrote:
> > This patch fixes
> > 
> > http://sources.redhat.com/bugzilla/show_bug.cgi?id=464
> 
> That's completely unnecessary.  Your "description" in the bz entry makes
> no sense at all.  What do the names of internal interfaces have to do
> with providing your own math library function?
> 
> The weak symbol definitions are just a relict and nothing on which the
> ia64 code should be modeled at.

You are wrong. The math library has 2 interfaces, public and internal.
A single .o in libm.a may provide both. If a user provides its own
public entry point and the one in libm.a gets pulled in due to the
usage of the internal interface, you get multiple definition errors.
Unless you don't have the internal and public interfaces in the same
file, you have to use weak symbol to support libm.a.


H.J.


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