This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [PATCH 1/4] Remove the error handling wrapper from exp and exp2
- From: "Gabriel F. T. Gomes" <gabriel at inconstante dot eti dot br>
- To: Szabolcs Nagy <Szabolcs dot Nagy at arm dot com>
- Cc: GNU C Library <libc-alpha at sourceware dot org>, nd <nd at arm dot com>
- Date: Fri, 26 Oct 2018 17:55:36 -0300
- Subject: Re: [PATCH 1/4] Remove the error handling wrapper from exp and exp2
- References: <fd4875f8-4752-7c86-d5ca-d99a014f210b@arm.com>
Hi, Szabolcs.
On Fri, 26 Oct 2018, Szabolcs Nagy wrote:
>
>+/* Work around gas bug "multiple versions for symbol". */
>+weak_alias (__exp_compat, __exp_compat_alias)
If I understood it correctly, you were getting the "multiple versions for
symbol" error, because there were two symbols trying to be compat symbols
for __exp_compat.
>+# if SHLIB_COMPAT (libm, GLIBC_2_0, GLIBC_2_29)
>+compat_symbol (libm, __exp_compat, exp, GLIBC_2_0);
>+# endif
Here.
>+LONG_DOUBLE_COMPAT_CHOOSE_libm_expl (
>+ compat_symbol (libm, __exp_compat_alias, expl, FIRST_VERSION_libm_expl), );
>+# endif
And here, when you were using __exp_compat, instead of __exp_compat_alias.
Right?
I have seen this before, and I have also used a weak_alias to work around
it, but I didn't know it was a bug in gas. Is there a bugzilla item about
this, which I could follow?