glibc/sysdeps
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
..
aarch64 Relocate AArch64 from ports to libc. 2014-02-11 11:36:00 +00:00
arm Fix whitespace in ARM files to allow move. 2014-02-08 01:52:38 +00:00
generic Avoid comma operator warnings. 2014-02-07 15:26:28 -08:00
gnu Use glibc_likely instead __builtin_expect. 2014-02-10 15:07:12 +01:00
i386 Use glibc_likely instead __builtin_expect. 2014-02-10 15:07:12 +01:00
ieee754 BZ #16447: Fix ldbl-128 expl implementation. 2014-02-11 13:47:47 +01:00
init_array Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
m68k Whitespace fixes 2014-02-10 20:24:03 +01:00
mach Revert "Patch [1/4] async-signal safe TLS." 2014-02-06 08:46:20 +10:00
mips Merge MIPS dl-lookup.c into generic file. 2014-02-11 22:33:07 +00:00
posix Use glibc_likely instead __builtin_expect. 2014-02-10 15:07:12 +01:00
powerpc Use glibc_likely instead __builtin_expect. 2014-02-10 15:07:12 +01:00
pthread Use glibc_likely instead __builtin_expect. 2014-02-10 15:07:12 +01:00
s390 BZ #16447: Fix ldbl-128 expl implementation. 2014-02-11 13:47:47 +01:00
sh Use glibc_likely instead __builtin_expect. 2014-02-10 15:07:12 +01:00
sparc Use glibc_likely instead __builtin_expect. 2014-02-10 15:07:12 +01:00
tile Move tilegx, tilepro, and linux-generic from ports to libc. 2014-02-10 11:04:39 -05:00
unix Relocate AArch64 from ports to libc. 2014-02-11 11:36:00 +00:00
wordsize-32 Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
wordsize-64 Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
x86 Disable x87 inline functions for SSE2 math 2014-01-29 11:19:05 -08:00
x86_64 Use glibc_likely instead __builtin_expect. 2014-02-10 15:07:12 +01:00