glibc/sysdeps/sparc/sparc32/sparcv8
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
..
addmul_1.S Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
dotmul.S Update. 1997-08-24 10:55:18 +00:00
Makefile Update. 1999-07-27 02:07:01 +00:00
mul_1.S Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
rem.S Sparc string routines from Jakub. 1999-03-29 13:25:15 +00:00
sdiv.S Sparc string routines from Jakub. 1999-03-29 13:25:15 +00:00
submul_1.S Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
udiv.S sparc: Fix .udiv plt on libc 2017-04-06 15:14:44 -03:00
umul.S Update. 1997-08-24 10:55:18 +00:00
urem.S Sparc string routines from Jakub. 1999-03-29 13:25:15 +00:00