This is the mail archive of the
libc-alpha@sources.redhat.com
mailing list for the glibc project.
Re: PATCH: BZ 464: IA64 math functions aren't weak
- From: "H. J. Lu" <hjl at lucon dot org>
- To: Ulrich Drepper <drepper at redhat dot com>
- Cc: GNU C Library <libc-alpha at sources dot redhat dot com>
- Date: Tue, 26 Oct 2004 13:54:21 -0700
- Subject: Re: PATCH: BZ 464: IA64 math functions aren't weak
- References: <20041026203557.GA22610@lucon.org> <417EB7A6.4020709@redhat.com>
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.