Permalink
Switch branches/tags
aj/revert-sunrpc
aj/shared-linux-fcntl
allan/config-files
andros/avx512f-mem
andros/libmvec
andros/pr19654
archlinux/2.18/master
azanella/bz12683
carlos/dlmopen
carlos/master
cmetcalf/tile-2.15
cvs/fedora-2_3-branch
cvs/fedora-2_5-branch
cvs/fedora-branch
cvs/glibc-2-1-branch
cvs/glibc-2-2-branch
cvs/glibc-2_0_x
cvs/glibc-2_3-branch
cvs/glibc-2_5-branch
cvs/glibc-2_6-branch
cvs/glibc-2_7-branch
cvs/glibc-2_8-branch
cvs/glibc-2_9-branch
cvs/glibc-2_10-branch
cvs/master
cvs/sparc-2_0_x-branch
cvs/thomas-posix1996
davem/sparc
dj/malloc
fedora/master
fedora/2.10/master
fedora/2.11/master
fedora/2.12/master
fedora/2.13/master
fedora/2.14/master
fedora/2.22/master
fw/extend_alloca
gentoo/2.18
gentoo/2.19
gentoo/2.20
gentoo/2.21
gentoo/2.22
gentoo/2.23
hjl/avx128
hjl/avx512f-mem/master
hjl/avx512f-mem/old
hjl/avx512f-mem/prefetcht1
hjl/cpuid/master
hjl/cpuid/2.21
hjl/cpuid/2.22
hjl/ctor/release/2.11
hjl/ctor/release/2.12
hjl/erms/i386
hjl/erms/ifunc
hjl/erms/master
hjl/erms/nt
hjl/erms/2.22
hjl/erms/2.23
hjl/fma/master
hjl/global
hjl/gold
hjl/i386/master
hjl/i486/multiarch-old
hjl/i486/multiarch
hjl/implies
hjl/init
hjl/ld.so/master
hjl/memcpy/dpdk/master
hjl/mempcpy
hjl/plt/master
hjl/plt/2.21
hjl/plt/2.22
hjl/pr13862
hjl/pr14370
hjl/pr14562/master
hjl/pr14562/2.16
hjl/pr14654
hjl/pr14716
hjl/pr14831
hjl/pr14937
hjl/pr14941
hjl/pr14955
hjl/pr14995
hjl/pr17711/2.18
hjl/pr17711/2.19
hjl/pr17711/2.20
hjl/pr17711/2.21
hjl/pr17841/master
hjl/pr17841/2.21
hjl/pr18078
hjl/pr18422
hjl/pr18661
hjl/pr18696
hjl/pr18858/master
hjl/pr19122
hjl/pr19178/master
hjl/pr19363/clobber
hjl/pr19363/master
hjl/pr19363/2.22
hjl/pr19371/master
hjl/pr19463
hjl/pr19583
hjl/pr19590
hjl/pr19679/2.23
hjl/pr19776/master
hjl/pthread/2.21
hjl/pthread/2.22
hjl/release/2.20/master
hjl/secondary/master
hjl/secondary/2.21
hjl/size/master
hjl/tst-plt
hjl/unaligned
hjl/x32/master
hjl/x32/release/2.12
hjl/x32/release/2.15
hjl/x86
hjl/32bit/master
hjl/32bit/2.22
ibm/master
ibm/2.8/master
ibm/2.10/master
ibm/2.11/master
ibm/2.12/master
ibm/2.13/master
ibm/2.16/master
ibm/2.18/master
ibm/2.19/master
ibm/2.20/master
ibm/2.22/master
ldmitrie/intel_mpx
linaro/master
lxoliva/getaddrinfo
master
neleai/string-x64
neleai/strlen
origin/ibm/2.8/master
pasky/fixes-overdue
pasky/fixes
release/2.10/master
release/2.11/master
release/2.12/master
release/2.13/master
release/2.14/master
release/2.15/master
release/2.16/master
release/2.17/master
release/2.18/master
release/2.19/master
release/2.20/master
release/2.21/master
release/2.22/master
release/2.23/master
roland/Wshadow
roland/add-on-abi-tags
roland/backtrace-syms
roland/cancelhandling
roland/disable-nis
roland/getpid
roland/gold-vs-libc
roland/hwcap_mask
roland/manual-check
roland/nacl-debug-hack
roland/nacl-exit-stacks
roland/nacl-port/master
roland/nptl_db
roland/pthread_attr_getstack
roland/stat64
roland/sysconf-clocks
roland/tempname
roland/x86_64-crt1-cfi
rsa/hwcap2_v3
rsa/hwcap2_v4
rsa/hwcap2_v5
rsa/hwcap2_v6
rsa/power8_partial
rsa/power8
rsa/stdint_headers
rsa/stdint_noheaders
rsa/stdint
rsa/2.17_backports_v2
rsa/2.17_backports_v3
rsa/2.17_backports
rth/aa-memset
rth/aa-opt
rth/execl
rth/tramp
siddhesh/is_in_module
siddhesh/mmap-fallback
siddhesh/posix-wundef
siddhesh/sem_timedwait
siddhesh/tunables
tuliom/multilib
Nothing to show
glibc-2.23
glibc-2.22
glibc-2.21
glibc-2.20
glibc-2.19
glibc-2.18
glibc-2.17
glibc-2.16.0
glibc-2.16
glibc-2.16-tps
glibc-2.16-ports-merge
glibc-2.15
glibc-2.14.1
glibc-2.14
glibc-2.13
glibc-2.12.2
glibc-2.12.1
glibc-2.12
glibc-2.11.3
glibc-2.11.2
glibc-2.11.1
glibc-2.11
glibc-2.10.2
glibc-2.10.1
glibc-2.10
glibc-2.9
glibc-2.8
glibc-2.7
glibc-2.6.1
glibc-2.6
glibc-2.5.1
glibc-2.5
glibc-2.4
glibc-2.3.6
glibc-2.3.5
glibc-2.3.4
glibc-2.3.3
glibc-2.3.2
glibc-2.3.1
glibc-2.3
glibc-2.2.5
glibc-2.2.4
glibc-2.2.3
glibc-2.2.2
glibc-2.2.1
glibc-2.2
glibc-2.1.97
glibc-2.1.96
glibc-2.1.95
glibc-2.1.94
glibc-2.1.93
glibc-2.1.92
glibc-2.1.91
glibc-2.1.2
glibc-2.1.1
glibc-2.1
glibc-2.0.112
glibc-2.0.106
glibc-2.0.103
glibc-2.0.101
glibc-2.0.100
glibc-2.0.99
glibc-2.0.98
glibc-2.0.97
glibc-2.0.96
glibc-2.0.95
glibc-2.0.92
glibc-2.0.6
glibc-2.0.5
glibc-2.0.5b
glibc-2.0.4
glibc-2.0.2
glibc-1.93
glibc-1.92
glibc-1.91
glibc-1.90
glibc-1.09
fedora/glibc-2.12.90-6
fedora/glibc-2.12.90-5
fedora/glibc-2.12.90-4
fedora/glibc-2.12.90-3
fedora/glibc-2.12.90-2
fedora/glibc-2.12.90-1
fedora/glibc-2.12-3
fedora/glibc-2.12-2
fedora/glibc-2.12-1
fedora/glibc-2.11.90-20
fedora/glibc-2.11.90-19
fedora/glibc-2.11.90-18
fedora/glibc-2.11.90-17
fedora/glibc-2.11.90-16
fedora/glibc-2.11.90-15
fedora/glibc-2.11.90-14
fedora/glibc-2.11.90-13
fedora/glibc-2.11.90-12
fedora/glibc-2.11.90-11
fedora/glibc-2.11.90-10
fedora/glibc-2.11.90-9
fedora/glibc-2.11.90-8
fedora/glibc-2.11.90-7
Nothing to show
Find file
Copy path
f7a9f78
Jan 4, 2016
0 contributors
Users who have contributed to this file
/* Multiple versions of strstr. | |
All versions must be listed in ifunc-impl-list.c. | |
Copyright (C) 2012-2016 Free Software Foundation, Inc. | |
This file is part of the GNU C Library. | |
The GNU C Library is free software; you can redistribute it and/or | |
modify it under the terms of the GNU Lesser General Public | |
License as published by the Free Software Foundation; either | |
version 2.1 of the License, or (at your option) any later version. | |
The GNU C Library is distributed in the hope that it will be useful, | |
but WITHOUT ANY WARRANTY; without even the implied warranty of | |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |
Lesser General Public License for more details. | |
You should have received a copy of the GNU Lesser General Public | |
License along with the GNU C Library; if not, see | |
<http://www.gnu.org/licenses/>. */ | |
/* Redefine strstr so that the compiler won't complain about the type | |
mismatch with the IFUNC selector in strong_alias, below. */ | |
#undef strstr | |
#define strstr __redirect_strstr | |
#include <string.h> | |
#undef strstr | |
#define STRSTR __strstr_sse2 | |
#ifdef SHARED | |
# undef libc_hidden_builtin_def | |
# define libc_hidden_builtin_def(name) \ | |
__hidden_ver1 (__strstr_sse2, __GI_strstr, __strstr_sse2); | |
#endif | |
#include "string/strstr.c" | |
extern __typeof (__redirect_strstr) __strstr_sse2_unaligned attribute_hidden; | |
extern __typeof (__redirect_strstr) __strstr_sse2 attribute_hidden; | |
#include "init-arch.h" | |
/* Avoid DWARF definition DIE on ifunc symbol so that GDB can handle | |
ifunc symbol properly. */ | |
extern __typeof (__redirect_strstr) __libc_strstr; | |
libc_ifunc (__libc_strstr, | |
HAS_ARCH_FEATURE (Fast_Unaligned_Load) | |
? __strstr_sse2_unaligned | |
: __strstr_sse2) | |
#undef strstr | |
strong_alias (__libc_strstr, strstr) |
Copy lines Copy permalink - View git blame