glibc/sysdeps/s390/multiarch
Stefan Liebler 18d6c45e12 s390: Refactor ifunc resolvers due to false debuginfo.
This patch adjusts the s390 specific ifunc helper macros in ifunc-resolve.h to
use the common __ifunc macro, which uses gcc attribute ifunc to get rid of the
false debuginfo. Therefore the redirection construct is applied where needed.

Perhaps in future we can switch some of the internal symbols __GI_* from the
fallback variant to the ifunc function. But this change is not
straightforward due to a segmentation fault while linking libc.so with older
binutils on s390.

ChangeLog:

	[BZ #20478]
	* sysdeps/s390/multiarch/ifunc-resolve.h
	(s390_vx_libc_ifunc2, s390_libc_ifunc): Use __ifunc from libc-symbols.h
	to create ifunc symbols.
	(s390_vx_libc_ifunc_init, s390_vx_libc_ifunc_redirected
	, s390_vx_libc_ifunc2_redirected, s390_libc_ifunc_init): New define.
	* sysdeps/s390/multiarch/memchr.c: Redirect ifunced function in header
	for using it as type for ifunc function.
	* sysdeps/s390/multiarch/mempcpy.c: Likewise.
	* sysdeps/s390/multiarch/rawmemchr.c: Likewise.
	* sysdeps/s390/multiarch/stpcpy.c: Likewise.
	* sysdeps/s390/multiarch/stpncpy.c: Likewise.
	* sysdeps/s390/multiarch/strcat.c: Likewise.
	* sysdeps/s390/multiarch/strchr.c: Likewise.
	* sysdeps/s390/multiarch/strcmp.c: Likewise.
	* sysdeps/s390/multiarch/strcpy.c: Likewise.
	* sysdeps/s390/multiarch/strcspn.c: Likewise.
	* sysdeps/s390/multiarch/strlen.c: Likewise.
	* sysdeps/s390/multiarch/strncmp.c: Likewise.
	* sysdeps/s390/multiarch/strncpy.c: Likewise.
	* sysdeps/s390/multiarch/strnlen.c: Likewise.
	* sysdeps/s390/multiarch/strpbrk.c: Likewise.
	* sysdeps/s390/multiarch/strrchr.c: Likewise.
	* sysdeps/s390/multiarch/strspn.c: Likewise.
	* sysdeps/s390/multiarch/wcschr.c: Likewise.
	* sysdeps/s390/multiarch/wcscmp.c: Likewise.
	* sysdeps/s390/multiarch/wcspbrk.c: Likewise.
	* sysdeps/s390/multiarch/wcsspn.c: Likewise.
	* sysdeps/s390/multiarch/wmemchr.c: Likewise.
	* sysdeps/s390/multiarch/wmemset.c: Likewise.
	* sysdeps/s390/s390-32/multiarch/memcmp.c: Likewise.
	* sysdeps/s390/s390-32/multiarch/memcpy.c: Likewise.
	* sysdeps/s390/s390-32/multiarch/memset.c: Likewise.
	* sysdeps/s390/s390-64/multiarch/memcmp.c: Likewise.
	* sysdeps/s390/s390-64/multiarch/memcpy.c: Likewise.
	* sysdeps/s390/s390-64/multiarch/memset.c: Likewise.
2016-10-07 10:11:21 +02:00
..
iconv S390: Optimize 8bit-generic iconv modules. 2016-05-25 17:18:04 +02:00
8bit-generic.c S390: Optimize 8bit-generic iconv modules. 2016-05-25 17:18:04 +02:00
gconv_simple.c S390: Optimize builtin iconv-modules. 2016-05-25 17:18:04 +02:00
gen-8bit.sh S390: Optimize 8bit-generic iconv modules. 2016-05-25 17:18:04 +02:00
ifunc-impl-list.c S390: Implement mempcpy with help of memcpy. [BZ #19765] 2016-05-24 10:39:13 +02:00
ifunc-resolve.h s390: Refactor ifunc resolvers due to false debuginfo. 2016-10-07 10:11:21 +02:00
Makefile S390: Optimize builtin iconv-modules. 2016-05-25 17:18:04 +02:00
memccpy-c.c Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
memccpy-vx.S Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
memccpy.c Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
memchr-vx.S Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
memchr.c s390: Refactor ifunc resolvers due to false debuginfo. 2016-10-07 10:11:21 +02:00
mempcpy.c s390: Refactor ifunc resolvers due to false debuginfo. 2016-10-07 10:11:21 +02:00
memrchr-c.c Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
memrchr-vx.S Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
memrchr.c Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
rawmemchr-c.c Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
rawmemchr-vx.S Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
rawmemchr.c s390: Refactor ifunc resolvers due to false debuginfo. 2016-10-07 10:11:21 +02:00
stpcpy-c.c Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
stpcpy-vx.S Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
stpcpy.c s390: Refactor ifunc resolvers due to false debuginfo. 2016-10-07 10:11:21 +02:00
stpncpy-c.c Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
stpncpy-vx.S Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
stpncpy.c s390: Refactor ifunc resolvers due to false debuginfo. 2016-10-07 10:11:21 +02:00
strcat-c.c Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
strcat-vx.S Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
strcat.c s390: Refactor ifunc resolvers due to false debuginfo. 2016-10-07 10:11:21 +02:00
strchr-c.c Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
strchr-vx.S Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
strchr.c s390: Refactor ifunc resolvers due to false debuginfo. 2016-10-07 10:11:21 +02:00
strchrnul-c.c Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
strchrnul-vx.S Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
strchrnul.c Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
strcmp-vx.S Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
strcmp.c s390: Refactor ifunc resolvers due to false debuginfo. 2016-10-07 10:11:21 +02:00
strcpy-vx.S Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
strcpy.c s390: Refactor ifunc resolvers due to false debuginfo. 2016-10-07 10:11:21 +02:00
strcspn-c.c Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
strcspn-vx.S Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
strcspn.c s390: Refactor ifunc resolvers due to false debuginfo. 2016-10-07 10:11:21 +02:00
strlen-c.c Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
strlen-vx.S Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
strlen.c s390: Refactor ifunc resolvers due to false debuginfo. 2016-10-07 10:11:21 +02:00
strncat-c.c Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
strncat-vx.S Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
strncat.c Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
strncmp-c.c Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
strncmp-vx.S Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
strncmp.c s390: Refactor ifunc resolvers due to false debuginfo. 2016-10-07 10:11:21 +02:00
strncpy-vx.S Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
strncpy.c s390: Refactor ifunc resolvers due to false debuginfo. 2016-10-07 10:11:21 +02:00
strnlen-c.c Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
strnlen-vx.S Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
strnlen.c s390: Refactor ifunc resolvers due to false debuginfo. 2016-10-07 10:11:21 +02:00
strpbrk-c.c Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
strpbrk-vx.S Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
strpbrk.c s390: Refactor ifunc resolvers due to false debuginfo. 2016-10-07 10:11:21 +02:00
strrchr-c.c Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
strrchr-vx.S Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
strrchr.c s390: Refactor ifunc resolvers due to false debuginfo. 2016-10-07 10:11:21 +02:00
strspn-c.c Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
strspn-vx.S Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
strspn.c s390: Refactor ifunc resolvers due to false debuginfo. 2016-10-07 10:11:21 +02:00
wcpcpy-c.c Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
wcpcpy-vx.S Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
wcpcpy.c Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
wcpncpy-c.c Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
wcpncpy-vx.S Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
wcpncpy.c Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
wcscat-c.c Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
wcscat-vx.S Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
wcscat.c Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
wcschr-c.c Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
wcschr-vx.S Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
wcschr.c s390: Refactor ifunc resolvers due to false debuginfo. 2016-10-07 10:11:21 +02:00
wcschrnul-c.c Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
wcschrnul-vx.S Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
wcschrnul.c Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
wcscmp-c.c Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
wcscmp-vx.S Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
wcscmp.c s390: Refactor ifunc resolvers due to false debuginfo. 2016-10-07 10:11:21 +02:00
wcscpy-c.c Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
wcscpy-vx.S Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
wcscpy.c Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
wcscspn-c.c Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
wcscspn-vx.S Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
wcscspn.c Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
wcslen-c.c Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
wcslen-vx.S Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
wcslen.c Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
wcsncat-c.c Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
wcsncat-vx.S Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
wcsncat.c Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
wcsncmp-c.c Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
wcsncmp-vx.S Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
wcsncmp.c Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
wcsncpy-c.c Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
wcsncpy-vx.S Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
wcsncpy.c Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
wcsnlen-c.c Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
wcsnlen-vx.S Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
wcsnlen.c Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
wcspbrk-c.c Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
wcspbrk-vx.S Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
wcspbrk.c s390: Refactor ifunc resolvers due to false debuginfo. 2016-10-07 10:11:21 +02:00
wcsrchr-c.c Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
wcsrchr-vx.S Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
wcsrchr.c Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
wcsspn-c.c Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
wcsspn-vx.S Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
wcsspn.c s390: Refactor ifunc resolvers due to false debuginfo. 2016-10-07 10:11:21 +02:00
wmemchr-c.c Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
wmemchr-vx.S Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
wmemchr.c s390: Refactor ifunc resolvers due to false debuginfo. 2016-10-07 10:11:21 +02:00
wmemcmp-c.c Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
wmemcmp-vx.S Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
wmemcmp.c Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
wmemset-c.c Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
wmemset-vx.S Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
wmemset.c s390: Refactor ifunc resolvers due to false debuginfo. 2016-10-07 10:11:21 +02:00