ce426f
From 7235e7a509ef1f93cb895f6cdd2bf27f497a3d0a Mon Sep 17 00:00:00 2001
ce426f
From: Adhemerval Zanella <adhemerval.zanella@linaro.org>
ce426f
Date: Fri, 31 Jul 2015 10:48:20 -0300
ce426f
Subject: [PATCH] powerpc: Fix PPC64/POWER7 conform tests
ce426f
ce426f
When building with --disable-multi-arch the strstr POWER7
ce426f
optimization create and uses symbols that conflict with expect conform
ce426f
tests.
ce426f
ce426f
	* sysdeps/powerpc/powerpc64/power7/strstr.S (strstr): Use __strnlen
ce426f
	for static build.
ce426f
ce426f
(cherry picked from commit 6f714aa4ad5af2745ae2d185821d20ce8fabc2c5)
ce426f
---
ce426f
 ChangeLog                                  | 7 +++++++
ce426f
 sysdeps/powerpc/powerpc64/power7/strstr.S  | 2 +-
ce426f
 3 files changed, 11 insertions(+), 3 deletions(-)
ce426f
ce426f
diff --git a/ChangeLog b/ChangeLog
ce426f
index d70df5c..cf95a84 100644
ce426f
diff --git a/sysdeps/powerpc/powerpc64/power7/strstr.S b/sysdeps/powerpc/powerpc64/power7/strstr.S
ce426f
index 8dca31c..bfb0c49 100644
ce426f
--- a/sysdeps/powerpc/powerpc64/power7/strstr.S
ce426f
+++ b/sysdeps/powerpc/powerpc64/power7/strstr.S
ce426f
@@ -39,7 +39,7 @@
ce426f
 # ifdef SHARED
ce426f
 #  define STRNLEN   __GI_strnlen
ce426f
 # else
ce426f
-#  define STRNLEN   strnlen
ce426f
+#  define STRNLEN  __strnlen
ce426f
 # endif
ce426f
 #endif
ce426f
 
ce426f
-- 
ce426f
2.1.0
ce426f