This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
[PATCH] Fix nearbyintl linkage for ia64 (bug 19219)
- From: Adhemerval Zanella <adhemerval dot zanella at linaro dot org>
- To: libc-alpha at sourceware dot org
- Date: Sun, 8 Nov 2015 20:47:02 -0200
- Subject: [PATCH] Fix nearbyintl linkage for ia64 (bug 19219)
- Authentication-results: sourceware.org; auth=none
GLIBC fails to build for ia64 since commit d0d286d32dda654f8983e8fe77bca0a2cda2051b.
It is because this commit uses the internal definition for nearbyintl,
but ia64 specialized implementation (sysdeps/ia64/fpu/s_nearbyintl.S)
does not define it.
Tested with a ia64 build.
[BZ #19219]
* sysdeps/ia64/fpu/s_nearbyintl.S (__nearbyint): Define and
weak_alias to nearbyintl.
---
sysdeps/ia64/fpu/s_nearbyintl.S | 5 +++--
2 files changed, 9 insertions(+), 2 deletions(-)
diff --git a/sysdeps/ia64/fpu/s_nearbyintl.S b/sysdeps/ia64/fpu/s_nearbyintl.S
index ee6159c..83adc07 100644
--- a/sysdeps/ia64/fpu/s_nearbyintl.S
+++ b/sysdeps/ia64/fpu/s_nearbyintl.S
@@ -99,7 +99,7 @@ fNormX = f10
// So input is an integer value already.
.section .text
-GLOBAL_LIBM_ENTRY(nearbyintl)
+GLOBAL_LIBM_ENTRY(__nearbyintl)
{ .mfi
getf.exp rSignexp = f8 // Get signexp, recompute if unorm
@@ -214,4 +214,5 @@ RINT_NOT_ROUND_NEAREST:
}
;;
-GLOBAL_LIBM_END(nearbyintl)
+GLOBAL_LIBM_END(__nearbyintl)
+weak_alias (__nearbyintl, nearbyintl)
--
1.9.1