Fix strstr/strcasestr on i686

Andreas Schwab schwab@redhat.com
Thu Sep 3 14:35:00 GMT 2009


This is the only file not shared with x86-64.

Andreas.

2009-09-03  Andreas Schwab  <schwab@redhat.com>

	* sysdeps/i386/i686/multiarch/strstr-c.c (__strstr_sse42)
	(__strstr_ia32): Add attribute_hidden.

diff --git a/sysdeps/i386/i686/multiarch/strstr-c.c b/sysdeps/i386/i686/multiarch/strstr-c.c
index 7ef1157..efa9f78 100644
--- a/sysdeps/i386/i686/multiarch/strstr-c.c
+++ b/sysdeps/i386/i686/multiarch/strstr-c.c
@@ -7,6 +7,7 @@
 
 #include "string/strstr.c"
 
-extern char *__strstr_sse42 (const char *, const char *);
+extern char *__strstr_sse42 (const char *, const char *) attribute_hidden;
+extern __typeof (__strstr_ia32) __strstr_ia32 attribute_hidden;
 
 libc_ifunc (strstr, HAS_SSE4_2 ? __strstr_sse42 : __strstr_ia32);

-- 
Andreas Schwab, schwab@redhat.com
GPG Key fingerprint = D4E8 DBE3 3813 BB5D FA84  5EC7 45C6 250E 6F00 984E
"And now for something completely different."



More information about the Libc-alpha mailing list