summaryrefslogtreecommitdiff
path: root/libc/string/arm
diff options
context:
space:
mode:
authorPeter S. Mazinger <ps.m@gmx.net>2006-03-23 17:19:42 +0000
committerPeter S. Mazinger <ps.m@gmx.net>2006-03-23 17:19:42 +0000
commita26ac41c4946e3ebe4fab0ce6677350b644eb158 (patch)
tree2b607eeef3aeffb7dab2815252c2f40c353599e6 /libc/string/arm
parent9f853a2642cc28e982ccf1ba45abd36ff0988e11 (diff)
Add new option for SuSv3 legacy functions and use it for bcopy/bzero/bcmp/index/rindex
Diffstat (limited to 'libc/string/arm')
-rw-r--r--libc/string/arm/bcopy.S4
-rw-r--r--libc/string/arm/bzero.S4
-rw-r--r--libc/string/arm/memcmp.S2
3 files changed, 10 insertions, 0 deletions
diff --git a/libc/string/arm/bcopy.S b/libc/string/arm/bcopy.S
index 0e559225f..db3c9e6c1 100644
--- a/libc/string/arm/bcopy.S
+++ b/libc/string/arm/bcopy.S
@@ -41,6 +41,8 @@
#include <features.h>
+#ifdef __UCLIBC_SUSV3_LEGACY__
+
.text
.global bcopy
.type bcopy,%function
@@ -54,3 +56,5 @@ bcopy:
b _memcpy /* (PLT) */
.size bcopy,.-bcopy
+
+#endif
diff --git a/libc/string/arm/bzero.S b/libc/string/arm/bzero.S
index c1eb93323..ee49cf560 100644
--- a/libc/string/arm/bzero.S
+++ b/libc/string/arm/bzero.S
@@ -39,6 +39,8 @@
#include <features.h>
+#ifdef __UCLIBC_SUSV3_LEGACY__
+
.text
.global bzero
.type bzero,%function
@@ -50,3 +52,5 @@ bzero:
b HIDDEN_JUMPTARGET(memset)
.size bzero,.-bzero
+
+#endif
diff --git a/libc/string/arm/memcmp.S b/libc/string/arm/memcmp.S
index af1b876ed..4f78b5128 100644
--- a/libc/string/arm/memcmp.S
+++ b/libc/string/arm/memcmp.S
@@ -63,4 +63,6 @@ memcmp:
.size memcmp,.-memcmp
libc_hidden_def(memcmp)
+#ifdef __UCLIBC_SUSV3_LEGACY__
strong_alias(memcmp,bcmp)
+#endif