glibc/sysdeps/mips
Joseph Myers cb4a292812 Merge MIPS dl-lookup.c into generic file.
MIPS has its own version of dl-lookup.c to deal with differences
between undefined symbol semantics in the PIC and non-PIC ABIs.  This
is often liable to get out of date with respect to the generic file
(for example, the recent __builtin_expect changes didn't cover ports,
and it's not obvious to anyone changing dl-lookup.c that there would
be architecture-specific versions).

This patch adds a macro that dl-machine.h can define that is used in
the appropriate place in dl-lookup.c, so that MIPS no longer needs its
own version of that file.

Tested for mips64 that the only changes to disassembly of installed
shared libraries appear to be ld.so changes attributable to different
line numbers and paths in assertions.

	* elf/dl-lookup.c (ELF_MACHINE_SYM_NO_MATCH): Define if not
	already defined.
	(do_lookup_x): Use ELF_MACHINE_SYM_NO_MATCH.
	* sysdeps/mips/dl-lookup.c: Remove.
	* sysdeps/mips/dl-machine.h (ELF_MACHINE_SYM_NO_MATCH): New macro.
2014-02-11 22:33:07 +00:00
..
bits Move mips from ports to libc. 2014-02-10 23:30:21 +00:00
fpu Fix whitespace in MIPS files to allow move. 2014-02-10 23:31:30 +00:00
ieee754 Move mips from ports to libc. 2014-02-10 23:30:21 +00:00
include/sys Move mips from ports to libc. 2014-02-10 23:30:21 +00:00
mips32 Move mips from ports to libc. 2014-02-10 23:30:21 +00:00
mips64 Move mips from ports to libc. 2014-02-10 23:30:21 +00:00
nptl Move mips from ports to libc. 2014-02-10 23:30:21 +00:00
soft-fp Move mips from ports to libc. 2014-02-10 23:30:21 +00:00
sys Move mips from ports to libc. 2014-02-10 23:30:21 +00:00
__longjmp.c Move mips from ports to libc. 2014-02-10 23:30:21 +00:00
abort-instr.h Move mips from ports to libc. 2014-02-10 23:30:21 +00:00
add_n.S Move mips from ports to libc. 2014-02-10 23:30:21 +00:00
addmul_1.S Move mips from ports to libc. 2014-02-10 23:30:21 +00:00
backtrace.c Move mips from ports to libc. 2014-02-10 23:30:21 +00:00
bsd-_setjmp.S Move mips from ports to libc. 2014-02-10 23:30:21 +00:00
bsd-setjmp.S Move mips from ports to libc. 2014-02-10 23:30:21 +00:00
configure Move mips from ports to libc. 2014-02-10 23:30:21 +00:00
configure.ac Move mips from ports to libc. 2014-02-10 23:30:21 +00:00
dl-dtprocnum.h Move mips from ports to libc. 2014-02-10 23:30:21 +00:00
dl-machine.h Merge MIPS dl-lookup.c into generic file. 2014-02-11 22:33:07 +00:00
dl-procinfo.c Move mips from ports to libc. 2014-02-10 23:30:21 +00:00
dl-procinfo.h Move mips from ports to libc. 2014-02-10 23:30:21 +00:00
dl-tls.h Move mips from ports to libc. 2014-02-10 23:30:21 +00:00
dl-trampoline.c Move mips from ports to libc. 2014-02-10 23:30:21 +00:00
fpregdef.h Move mips from ports to libc. 2014-02-10 23:30:21 +00:00
fpu_control.h Move mips from ports to libc. 2014-02-10 23:30:21 +00:00
gccframe.h Move mips from ports to libc. 2014-02-10 23:30:21 +00:00
Implies Move mips from ports to libc. 2014-02-10 23:30:21 +00:00
jmpbuf-unwind.h Move mips from ports to libc. 2014-02-10 23:30:21 +00:00
ldsodefs.h Move mips from ports to libc. 2014-02-10 23:30:21 +00:00
libc-tls.c Move mips from ports to libc. 2014-02-10 23:30:21 +00:00
lshift.S Move mips from ports to libc. 2014-02-10 23:30:21 +00:00
machine-gmon.h Move mips from ports to libc. 2014-02-10 23:30:21 +00:00
Makefile Move mips from ports to libc. 2014-02-10 23:30:21 +00:00
math_private.h Move mips from ports to libc. 2014-02-10 23:30:21 +00:00
math-tests.h Move mips from ports to libc. 2014-02-10 23:30:21 +00:00
memcpy.S Move mips from ports to libc. 2014-02-10 23:30:21 +00:00
memset.S Move mips from ports to libc. 2014-02-10 23:30:21 +00:00
memusage.h Move mips from ports to libc. 2014-02-10 23:30:21 +00:00
mul_1.S Move mips from ports to libc. 2014-02-10 23:30:21 +00:00
preconfigure Move mips from ports to libc. 2014-02-10 23:30:21 +00:00
regdef.h Fix whitespace in MIPS files to allow move. 2014-02-10 23:31:30 +00:00
rshift.S Move mips from ports to libc. 2014-02-10 23:30:21 +00:00
setjmp_aux.c Move mips from ports to libc. 2014-02-10 23:30:21 +00:00
setjmp.S Move mips from ports to libc. 2014-02-10 23:30:21 +00:00
sgidefs.h Move mips from ports to libc. 2014-02-10 23:30:21 +00:00
shlib-versions Move mips from ports to libc. 2014-02-10 23:30:21 +00:00
sotruss-lib.c Move mips from ports to libc. 2014-02-10 23:30:21 +00:00
stackinfo.h Move mips from ports to libc. 2014-02-10 23:30:21 +00:00
start.S Move mips from ports to libc. 2014-02-10 23:30:21 +00:00
sub_n.S Move mips from ports to libc. 2014-02-10 23:30:21 +00:00
submul_1.S Move mips from ports to libc. 2014-02-10 23:30:21 +00:00
tininess.h Move mips from ports to libc. 2014-02-10 23:30:21 +00:00
tls-macros.h Move mips from ports to libc. 2014-02-10 23:30:21 +00:00
tst-audit.h Move mips from ports to libc. 2014-02-10 23:30:21 +00:00