This is the mail archive of the
libc-alpha@sources.redhat.com
mailing list for the glibc project.
[PATCH] PPC64 memset remove bogus global symbol
- From: Steve Munroe <sjmunroe at us dot ibm dot com>
- To: libc-alpha at sources dot redhat dot com
- Date: Thu, 28 Apr 2005 17:21:05 -0500
- Subject: [PATCH] PPC64 memset remove bogus global symbol
- Reply-to: sjmunroe at vnet dot ibm dot com
powerpc64/memset.S is using ___memset as target for bzero to enter
memset. This is defaulting to a global symbol which is bad (it confuses
oProfile). Sould use a local <L(_memset)> for this.
2005-03-22 Steven Munroe <sjmunroe@us.ibm.com>
* sysdeps/powerpc/powerpc64/memset.S (memset): Make ___memset local.
diff -urN libc24-cvstip-20050427/sysdeps/powerpc/powerpc64/memset.S libc24/sysdeps/powerpc/powerpc64/memset.S
--- libc24-cvstip-20050427/sysdeps/powerpc/powerpc64/memset.S 2004-10-06 17:08:54.000000000 -0500
+++ libc24/sysdeps/powerpc/powerpc64/memset.S 2005-04-28 11:15:22.000000000 -0500
@@ -62,8 +62,7 @@
#define rNEG64 r8 /* Constant -64 for clearing with dcbz. */
#define rCLS r8 /* Cache line size obtained from static. */
#define rCLM r9 /* Cache line size mask to check for cache alignment. */
-
-___memset:
+L(_memset):
#if __BOUNDED_POINTERS__
cmpldi cr1, rRTN, 0
CHECK_BOUNDS_BOTH_WIDE (rMEMP0, rTMP, rTMP2, rLEN)
@@ -282,11 +281,11 @@
mr r4,r3
/* Tell memset that we don't want a return value. */
li r3,0
- b ___memset
+ b L(_memset)
#else
mr r5,r4
li r4,0
- b ___memset
+ b L(_memset)
#endif
END_GEN_TB (BP_SYM (__bzero),TB_TOCLESS)