This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: String Functions for x86-64
- From: Mike Frysinger <vapier at gentoo dot org>
- To: "Menezes, Evandro" <evandro dot menezes at amd dot com>
- Cc: libc-alpha at sourceware dot org, "Michael Matz" <matz at suse dot de>, "Meissner, Michael" <michael dot meissner at amd dot com>, "Gwenole Beauchesne" <gbeauchesne at mandriva dot com>
- Date: Thu, 11 May 2006 23:25:37 -0400
- Subject: Re: String Functions for x86-64
- References: <84EA05E2CA77634C82730353CBE3A84304D5F770@SAUSEXMB1.amd.com>
On Thursday 11 May 2006 18:30, Menezes, Evandro wrote:
> 2006-05-09 Evandro Menezes <evandro.menezes@amd.com>
ok, i lied, still needs a tiny bit more love ... the new patch posted merged
most of the PIC && SHARED fixes, but still lacks a few lines ... patch
attached to apply against libc-string-x86_64-head.diff
-mike
--- libc-string-x86_64-head.diff
+++ libc-string-x86_64-head.diff
@@ -244,7 +244,7 @@
+# include <rtld-global-offsets.h>
+#endif
+
-+#ifdef PIC
++#if defined PIC && defined SHARED
+ .globl _rtld_local_ro
+ .hidden _rtld_local_ro
+ .set _rtld_local_ro,_rtld_global_ro
@@ -715,7 +715,7 @@
- and the return value is the byte after the last one copied in
- the destination. */
-#define MEMPCPY_P (defined memcpy)
-+#ifdef PIC
++#if defined PIC && defined SHARED
+ .globl _rtld_local_ro
+ .hidden _rtld_local_ro
+ .set _rtld_local_ro,_rtld_global_ro
@@ -1298,7 +1298,7 @@
-/* This is somehow experimental and could made dependend on the cache
- size. */
-#define LARGE $120000
-+#ifdef PIC
++#if defined PIC && defined SHARED
+ .globl _rtld_local_ro
+ .hidden _rtld_local_ro
+ .set _rtld_local_ro,_rtld_global_ro
@@ -2255,7 +2255,7 @@
-#ifndef USE_AS_STPCPY
-# define STRCPY strcpy
-+#ifdef PIC
++#if defined PIC && defined SHARED
+ .globl _rtld_local_ro
+ .hidden _rtld_local_ro
+ .set _rtld_local_ro,_rtld_global_ro
@@ -3543,7 +3543,7 @@
+# include <rtld-global-offsets.h>
+#endif
+
-+#ifdef PIC
++#if defined PIC && defined SHARED
+ .globl _rtld_local_ro
+ .hidden _rtld_local_ro
+ .set _rtld_local_ro,_rtld_global_ro