PATCH: BZ 464: IA64 math functions aren't weak
H. J. Lu
hjl@lucon.org
Wed Oct 27 05:07:00 GMT 2004
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.
More information about the Libc-alpha
mailing list