glibc/sysdeps
Joseph Myers 935ab81792 Fix resolver bind, getsockname namespace (bug 17733).
On Linux architectures using socketcall, the resolver ends up bringing
in strong symbols for bind and getsockname, which are not in
POSIX.1-1996.  This causes linknamespace test failures:

FAIL: conform/POSIX/pthread.h/linknamespace
FAIL: conform/POSIX/sched.h/linknamespace
FAIL: conform/POSIX/time.h/linknamespace

These functions are defined as strong symbols with __bind and
__getsockname as weak aliases.  This patch switches this to the other
way round by removing the NO_WEAK_ALIAS definitions and so letting the
default case in socket.S act; I see no reason for the existing
arrangements.

Tested for x86 (testsuite, and that disassembly of installed shared
libraries is unchanged by the patch).

	[BZ #17733]
	* sysdeps/unix/sysv/linux/bind.S (NO_WEAK_ALIAS): Do not define.
	(__bind): Do not define as weak alias.
	* sysdeps/unix/sysv/linux/getsockname.S (NO_WEAK_ALIAS): Do not
	define.
	(__getsockname): Do not define as weak alias.
2014-12-22 12:46:27 +00:00
..
aarch64 [AArch64] Fix strchrnul clobbering v15 2014-12-10 09:54:09 +00:00
alpha Remove IS_IN_rtld 2014-11-24 11:41:48 +05:30
arm Remove NOT_IN_libc 2014-11-24 15:03:45 +05:30
generic Add hidden __tls_get_addr/___tls_get_addr alias 2014-12-21 09:27:11 -08:00
gnu Use PTR_MANGLE on libgcc unwinder function pointers. 2014-12-16 15:47:53 -08:00
hppa Don't use INTDEF/INTUSE with _dl_init (bug 14132). 2014-11-04 23:26:39 +00:00
i386 Add hidden __tls_get_addr/___tls_get_addr alias 2014-12-21 09:27:11 -08:00
ia64 Remove NOT_IN_libc 2014-11-24 15:03:45 +05:30
ieee754 powerpc: Fix lgammal_r overflow warnings 2014-12-11 07:17:11 -05:00
init_array Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
m68k m68k: remove @PLTPC from _dl_init call 2014-12-21 15:21:14 +01:00
mach Fix resolver if_* namespace (bug 17717). 2014-12-16 18:18:49 +00:00
microblaze microblaze: 64b atomic operations are not supported. 2014-11-21 14:09:21 +01:00
mips Remove trailing white space. 2014-12-19 14:40:29 -08:00
nptl NPTL: Move fork state variables to initializer files. 2014-12-17 14:33:28 -08:00
posix Fix profil_counter namespace (bug 17725). 2014-12-17 18:10:37 +00:00
powerpc Fix strftime wcschr namespace (bug 17634). 2014-12-10 16:59:02 +00:00
pthread Move semaphore.h to sysdeps/pthread/. 2014-12-11 22:58:48 +00:00
s390 S/390: Get rid of assembler warning value truncated. 2014-12-11 17:02:24 +01:00
sh * Fix SH specific compiler warnings which are for integer-pointer 2014-12-12 08:07:35 +09:00
sparc Fix soft-fp build warning on sparc about strict aliasing. 2014-12-19 13:45:31 -08:00
tile tile: separate ffsll from ffs 2014-12-21 17:12:54 -05:00
unix Fix resolver bind, getsockname namespace (bug 17733). 2014-12-22 12:46:27 +00:00
wordsize-32 Remove NOT_IN_libc 2014-11-24 15:03:45 +05:30
wordsize-64 Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
x86 Recognize recent x86 CPUs in string.h 2014-11-27 17:21:12 +01:00
x86_64 Add hidden __tls_get_addr/___tls_get_addr alias 2014-12-21 09:27:11 -08:00