aboutsummaryrefslogtreecommitdiff
path: root/sysdeps/powerpc/powerpc64/multiarch
diff options
context:
space:
mode:
authorTulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>2016-05-30 18:00:57 -0300
committerTulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>2016-06-06 16:03:29 -0300
commitc24480ce3b5fed848243fc9642932ef2fa670109 (patch)
treebaa3e66991dd688df62c3b296016bb15d0ef1650 /sysdeps/powerpc/powerpc64/multiarch
parentb5537473c2ccb6874985e3d2bc0a0c7e204213bd (diff)
downloadglibc-c24480ce3b5fed848243fc9642932ef2fa670109.tar
glibc-c24480ce3b5fed848243fc9642932ef2fa670109.tar.gz
glibc-c24480ce3b5fed848243fc9642932ef2fa670109.tar.bz2
glibc-c24480ce3b5fed848243fc9642932ef2fa670109.zip
powerpc: Fix --disable-multi-arch build on POWER8
Add missing symbols of stpncpy and strcasestr when multi-arch is disabled. Fix memset call from strncpy/stpncpy when multi-arch is disabled.
Diffstat (limited to 'sysdeps/powerpc/powerpc64/multiarch')
-rw-r--r--sysdeps/powerpc/powerpc64/multiarch/stpncpy-power8.S3
-rw-r--r--sysdeps/powerpc/powerpc64/multiarch/strncpy-power8.S3
2 files changed, 6 insertions, 0 deletions
diff --git a/sysdeps/powerpc/powerpc64/multiarch/stpncpy-power8.S b/sysdeps/powerpc/powerpc64/multiarch/stpncpy-power8.S
index 804e499023..e08fbe5718 100644
--- a/sysdeps/powerpc/powerpc64/multiarch/stpncpy-power8.S
+++ b/sysdeps/powerpc/powerpc64/multiarch/stpncpy-power8.S
@@ -36,4 +36,7 @@
TRACEBACK(__stpncpy_power8) \
END_2(__stpncpy_power8)
+#undef libc_hidden_builtin_def
+#define libc_hidden_builtin_def(name)
+
#include <sysdeps/powerpc/powerpc64/power8/stpncpy.S>
diff --git a/sysdeps/powerpc/powerpc64/multiarch/strncpy-power8.S b/sysdeps/powerpc/powerpc64/multiarch/strncpy-power8.S
index 3263bbd70a..752215572c 100644
--- a/sysdeps/powerpc/powerpc64/multiarch/strncpy-power8.S
+++ b/sysdeps/powerpc/powerpc64/multiarch/strncpy-power8.S
@@ -37,4 +37,7 @@
#undef libc_hidden_builtin_def
#define libc_hidden_builtin_def(name)
+/* memset is used to pad the end of the string. */
+#define MEMSET __memset_power8
+
#include <sysdeps/powerpc/powerpc64/power8/strncpy.S>