glibc/sysdeps/sparc
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
..
bits
fpu
nptl
sparc32 sparc: Fix .udiv plt on libc 2017-04-06 15:14:44 -03:00
sparc64
sys
abort-instr.h
backtrace.c
configure
configure.ac
crti.S
crtn.S
dl-dtprocnum.h
dl-procinfo.c
dl-procinfo.h
dl-sysdep.h
dl-tls.h
gccframe.h
ldsodefs.h
machine-gmon.h
Makefile
mempcpy.S
memusage.h
preconfigure
sparc-ifunc.h
sparc-mcount.S
stackinfo.h
Subdirs
sysdep.h