From: Szabolcs Nagy Date: Mon, 2 Oct 2017 14:53:51 +0000 (+0100) Subject: fix drem symbol for static linking and new targets X-Git-Tag: upstream/2.30~2443 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=f275f64e7e97fcfe31280aabd0d64591c90bbe18;p=platform%2Fupstream%2Fglibc.git fix drem symbol for static linking and new targets The compat remainder code is no longer built for !LIBM_SVID_COMPAT targets, but the legacy drem, dremf and dreml symbols should be still defined since removing them may break existing code, so keep them as aliases in the non-compat remainder code. * math/w_remainder.c: New file. * math/w_remainderf.c: New file. * math/w_remainderl.c: New file. --- diff --git a/ChangeLog b/ChangeLog index d2444dd..58aea77 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2017-10-03 Szabolcs Nagy + + * math/w_remainder.c: New file. + * math/w_remainderf.c: New file. + * math/w_remainderl.c: New file. + 2017-10-03 H.J. Lu * elf/rtld.c (BOOTSTRAP_MAP): New. diff --git a/math/w_remainder.c b/math/w_remainder.c new file mode 100644 index 0000000..86d5da7 --- /dev/null +++ b/math/w_remainder.c @@ -0,0 +1,8 @@ +#include +#include +#if __USE_WRAPPER_TEMPLATE +weak_alias (__remainder, drem) +# ifdef NO_LONG_DOUBLE +weak_alias (__remainder, dreml) +# endif +#endif diff --git a/math/w_remainderf.c b/math/w_remainderf.c new file mode 100644 index 0000000..f663622 --- /dev/null +++ b/math/w_remainderf.c @@ -0,0 +1,5 @@ +#include +#include +#if __USE_WRAPPER_TEMPLATE +weak_alias (__remainderf, dremf) +#endif diff --git a/math/w_remainderl.c b/math/w_remainderl.c new file mode 100644 index 0000000..2aca8bc --- /dev/null +++ b/math/w_remainderl.c @@ -0,0 +1,5 @@ +#include +#include +#if __USE_WRAPPER_TEMPLATE +weak_alias (__remainderl, dreml) +#endif