1 /* Multiple versions of strstr
2 All versions must be listed in ifunc-impl-list.c. */
6 #define STRSTR __strstr_ia32
7 #if defined SHARED && defined DO_VERSIONING && !defined NO_HIDDEN
8 #undef libc_hidden_builtin_def
9 #define libc_hidden_builtin_def(name) \
10 __hidden_ver1 (__strstr_ia32, __GI_strstr, __strstr_ia32);
13 /* Redefine strstr so that the compiler won't complain about the type
14 mismatch with the IFUNC selector in strong_alias, below. */
16 #define strstr __redirect_strstr
18 #include "string/strstr.c"
20 extern __typeof (__redirect_strstr
) __strstr_sse42 attribute_hidden
;
21 extern __typeof (__redirect_strstr
) __strstr_ia32 attribute_hidden
;
23 /* Avoid DWARF definition DIE on ifunc symbol so that GDB can handle
24 ifunc symbol properly. */
25 extern __typeof (__redirect_strstr
) __libc_strstr
;
26 libc_ifunc (__libc_strstr
, HAS_SSE4_2
? __strstr_sse42
: __strstr_ia32
)
29 strong_alias (__libc_strstr
, strstr
)