summaryrefslogtreecommitdiff
path: root/src/string
diff options
context:
space:
mode:
Diffstat (limited to 'src/string')
-rw-r--r--src/string/i386/memcpy.s3
-rw-r--r--src/string/i386/memmove.s3
2 files changed, 5 insertions, 1 deletions
diff --git a/src/string/i386/memcpy.s b/src/string/i386/memcpy.s
index b2977c89..0608dd83 100644
--- a/src/string/i386/memcpy.s
+++ b/src/string/i386/memcpy.s
@@ -1,6 +1,9 @@
.global memcpy
+.global __memcpy_fwd
+.hidden __memcpy_fwd
.type memcpy,@function
memcpy:
+__memcpy_fwd:
push %esi
push %edi
mov 12(%esp),%edi
diff --git a/src/string/i386/memmove.s b/src/string/i386/memmove.s
index 6e6cc8e3..2a6a504b 100644
--- a/src/string/i386/memmove.s
+++ b/src/string/i386/memmove.s
@@ -4,7 +4,8 @@ memmove:
mov 4(%esp),%eax
sub 8(%esp),%eax
cmp 12(%esp),%eax
- jae memcpy
+.hidden __memcpy_fwd
+ jae __memcpy_fwd
push %esi
push %edi
mov 12(%esp),%edi