glibc/sysdeps
Adhemerval Zanella bdc543e338 sparc: Fix .udiv plt on libc
With the removal of divdi3 object from sparcv9-linux-gnu build, its
definition came from libgcc and its functions internall calls .udiv.
Since glibc also exports these symbols for compatibility reasons, it
will end up creating PLT calls internally in libc.so.

To avoid it, this patch uses the linker option --wrap to replace all
the internal libc.so .udiv calls to the wrapper __wrap_.udiv. Along
with strong alias in the udiv implementations, it makes linker do
local calls.

Checked on sparcv9-linux-gnu.

	* sysdeps/sparc/sparc32/Makefile (libc.so-gnulib): New rule.
	* sysdeps/sparc/sparc32/sparcv8/udiv.S (.udiv): Make a strong_alias
	to __wrap_.udiv.
	* sysdeps/sparc/sparc32/sparcv9/udiv.S (.udiv): Likewise.
	* sysdeps/sparc/sparc32/udiv.S (.udiv): Likewise.
2017-04-06 15:14:44 -03:00
..
aarch64 [AArch64] Update libm-test-ulps 2017-03-27 12:02:47 +01:00
alpha Remove _dl_platform_string 2017-03-14 17:18:52 +01:00
arm
generic Change return type in the declaration of __ieee754_rem_pio2l 2017-03-30 15:22:27 -03:00
gnu
hppa hppa: Fix setting of __libc_stack_end 2017-03-15 13:37:16 -07:00
i386 Build divdi3 only for architecture that required it 2017-04-06 15:14:34 -03:00
ia64 Allow direct use of math_ldbl.h in testsuite. 2017-02-25 10:40:48 -05:00
ieee754 Improve float range reduction accuracy near pi/2 (bug 21094). 2017-03-15 22:00:54 +00:00
init_array
m68k Build divdi3 only for architecture that required it 2017-04-06 15:14:34 -03:00
mach hurd: Make send/recv more posixish 2017-03-13 20:41:12 +01:00
microblaze
mips Remove _dl_platform_string 2017-03-14 17:18:52 +01:00
nacl Narrowing the visibility of libc-internal.h even further. 2017-03-01 20:33:46 -05:00
nios2
nptl Narrowing the visibility of libc-internal.h even further. 2017-03-01 20:33:46 -05:00
posix Remove the str(n)dup inlines from string/bits/string2.h. Although inlining 2017-03-13 18:45:42 +00:00
powerpc Build divdi3 only for architecture that required it 2017-04-06 15:14:34 -03:00
pthread Refer to <signal.h> instead of <pthread.h> in <bits/sigthread.h> 2017-02-28 10:34:15 +01:00
s390 Build divdi3 only for architecture that required it 2017-04-06 15:14:34 -03:00
sh sh: Fix building with gcc5/6 2017-03-12 17:29:32 -03:00
sparc sparc: Fix .udiv plt on libc 2017-04-06 15:14:44 -03:00
tile
unix Build divdi3 only for architecture that required it 2017-04-06 15:14:34 -03:00
wordsize-32 Build divdi3 only for architecture that required it 2017-04-06 15:14:34 -03:00
wordsize-64
x86 Use CPU_FEATURES_CPU_P to check if AVX is available 2017-03-17 11:38:13 -07:00
x86_64 Remove CALL_THREAD_FCT macro 2017-04-04 18:03:35 -03:00