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