glibc/sysdeps/unix/sysv/linux
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 Remove NOT_IN_libc 2014-11-24 15:03:45 +05:30
alpha Remove NOT_IN_libc 2014-11-24 15:03:45 +05:30
arm Fix profil_counter namespace (bug 17725). 2014-12-17 18:10:37 +00:00
bits Define CLOCK_TAI on Linux (bug 17608) 2014-11-24 17:28:41 +01:00
generic Remove __libc_creat function name. 2014-10-30 19:44:31 +00:00
hppa Fix profil_counter namespace (bug 17725). 2014-12-17 18:10:37 +00:00
i386 Add hidden __tls_get_addr/___tls_get_addr alias 2014-12-21 09:27:11 -08:00
ia64 Fix profil_counter namespace (bug 17725). 2014-12-17 18:10:37 +00:00
include/sys Don't use INTUSE with __adjtimex (bug 14132). 2014-10-08 23:19:32 +00:00
m68k Remove NOT_IN_libc 2014-11-24 15:03:45 +05:30
microblaze Remove NOT_IN_libc 2014-11-24 15:03:45 +05:30
mips Fix MIPS waitid build. 2014-12-10 18:50:07 +00:00
net
netash
netatalk
netax25
neteconet
netinet
netipx
netiucv
netpacket
netrom
netrose
nfs
powerpc Remove NOT_IN_libc 2014-11-24 15:03:45 +05:30
s390 Fix profil_counter namespace (bug 17725). 2014-12-17 18:10:37 +00:00
scsi
sh sh: Remove custom lowlevellock, barrier, condvar, and rwlock implementations. 2014-12-19 15:20:37 +01:00
sparc Fix profil_counter namespace (bug 17725). 2014-12-17 18:10:37 +00:00
sys Fix prototype of eventfd. 2014-09-20 14:05:49 +02:00
tile tile: remove localplt.data and use generic one again. 2014-12-21 16:09:36 -05:00
wordsize-64 Remove __libc_creat function name. 2014-10-30 19:44:31 +00:00
x86 Properly handle forced elision in pthread_mutex_trylock (bug 16657) 2014-12-11 12:44:27 +01:00
x86_64 Use generic lowlevellock-futex.h in x86_64 lowlevellock.h. 2014-12-19 15:21:12 +01:00
Implies
Makefile Remove NOT_IN_libc 2014-11-24 15:03:45 +05:30
Versions
_G_config.h
_exit.c
a.out.h
accept.S
accept4.c
adjtime.c Don't use INTUSE with __adjtimex (bug 14132). 2014-10-08 23:19:32 +00:00
aio_misc.h
aio_sigqueue.c
allocrtsig.c
arch-fork.h
bind.S Fix resolver bind, getsockname namespace (bug 17733). 2014-12-22 12:46:27 +00:00
check_native.c
check_pf.c Remove IS_IN_nscd 2014-11-24 11:41:44 +05:30
clock.c
clock_getcpuclockid.c
clock_getres.c
clock_gettime.c
clock_nanosleep.c
clock_settime.c
cmsg_nxthdr.c
configure Remove bitrotten --enable-oldest-abi (bug 6652). 2014-09-16 17:45:03 +00:00
configure.ac Remove bitrotten --enable-oldest-abi (bug 6652). 2014-09-16 17:45:03 +00:00
connect.S
createthread.c NPTL: Move Linux-specific createthread.c to sysdeps. 2014-11-18 11:03:20 -08:00
default-sched.h NPTL: Refactor scheduler setup in pthread_create. 2014-11-20 10:56:20 -08:00
device-nrs.h
dl-brk.c
dl-execstack.c
dl-fxstatat64.c
dl-getcwd.c
dl-librecon.h
dl-openat64.c
dl-opendir.c
dl-origin.c
dl-osinfo.h
dl-sbrk.c
dl-sysdep.c
dl-sysdep.h
dl-vdso.c
dl-vdso.h
dl-writev.h
epoll_pwait.c
errqueue.h
eventfd.c Fix prototype of eventfd. 2014-09-20 14:05:49 +02:00
eventfd_read.c
eventfd_write.c
exit-thread.h
faccessat.c
fallocate.c
fallocate64.c
fatal-prepare.h
fchmodat.c
fcntl.c
fd_to_filename.h
fexecve.c
fips-private.h
fpathconf.c
fstatfs64.c
fstatvfs.c
fstatvfs64.c
ftime.c
ftruncate64.c
futimens.c
futimes.c
futimesat.c
fxstat.c
fxstat64.c
fxstatat.c
fxstatat64.c
gai_sigqueue.c
getclktck.c
getcwd.c Remove IS_IN_rtld 2014-11-24 11:41:48 +05:30
getdents.c
getdents64.c
getdirentries.c
getdirentries64.c
getdtsz.c
gethostid.c
getipv4sourcefilter.c
getloadavg.c
getlogin.c
getlogin_r.c
getpagesize.c
getpeername.S
getpid.c Remove NOT_IN_libc 2014-11-24 15:03:45 +05:30
getpriority.c
getpt.c
getrlimit64.c
getsockname.S Fix resolver bind, getsockname namespace (bug 17733). 2014-12-22 12:46:27 +00:00
getsockopt.S
getsourcefilter.c
getsysstats.c Fix __get_nprocs fgets_unlocked namespace (bug 17582). 2014-11-12 22:39:36 +00:00
grantpt.c
if_index.c Fix resolver if_* namespace (bug 17717). 2014-12-16 18:18:49 +00:00
ifaddrs.c Fix getifaddrs, freeifaddrs namespace (bug 17668). 2014-12-02 23:11:09 +00:00
ifreq.c
internal_accept4.S
internal_recvmmsg.S
internal_sendmmsg.S
internal_statvfs.c
internal_statvfs64.c
ipc_priv.h
kernel-features.h
kernel-posix-cpu-timers.h
kernel-posix-timers.h
kernel_sigaction.h
kernel_stat.h
kernel_termios.h
ldd-rewrite.sed
lddlibc4.c
ldsodefs.h
libc_fatal.c
linux_fsinfo.h
listen.S
llseek.c
local-setxid.h
lowlevellock-futex.h Use generic lowlevellock-futex.h in x86_64 lowlevellock.h. 2014-12-19 15:21:12 +01:00
lseek64.c
lutimes.c
lxstat.c
lxstat64.c
makedev.c
malloc-sysdep.h
mmap64.c
mq_close.c
mq_getattr.c
mq_notify.c
mq_open.c
mq_receive.c
mq_send.c
mq_unlink.c
msgctl.c
msgget.c
msgrcv.c
msgsnd.c
netlinkaccess.h
nice.c
not-cancel.h Remove NOT_IN_libc 2014-11-24 15:03:45 +05:30
nptl-signals.h
nscd_setup_thread.c
ntp_gettime.c Don't use INTUSE with __adjtimex (bug 14132). 2014-10-08 23:19:32 +00:00
ntp_gettimex.c Don't use INTUSE with __adjtimex (bug 14132). 2014-10-08 23:19:32 +00:00
open64.c
openat.c
openat64.c
opendir.c
opensock.c
pathconf.c
pathconf.h
paths.h
posix_fadvise.c
posix_fadvise64.c
posix_fallocate.c
posix_fallocate64.c
posix_madvise.c
ppoll.c
pread.c
pread64.c
preadv.c
preadv64.c
prlimit.c
prof-freq.c
profil.c
pselect.c Remove __libc_pselect alias. 2014-10-31 21:22:35 +00:00
pt-raise.c
pthread_getaffinity.c
pthread_getcpuclockid.c
pthread_getname.c
pthread_kill.c
pthread_setaffinity.c
pthread_setname.c
pthread_sigmask.c
pthread_sigqueue.c
ptrace.c
ptsname.c
pwrite.c
pwrite64.c
pwritev.c
pwritev64.c
raise.c
readahead.c
readdir64.c
readdir64_r.c
readonly-area.c
reboot.c
recv.S
recvfrom.S
recvmmsg.c Sync recvmmsg prototype with kernel usage. 2014-09-20 13:53:44 +02:00
recvmsg.S
remove.c
sa_len.c
safe-fatal.h
sched_getaffinity.c
sched_getcpu.c
sched_setaffinity.c
segfault.c
semctl.c
semget.c
semop.c
semtimedop.c
send.S
sendmmsg.c
sendmsg.S
sendto.S
setegid.c
seteuid.c
setgid.c
setgroups.c
sethostid.c
setipv4sourcefilter.c
setregid.c
setresgid.c
setresuid.c
setreuid.c
setrlimit64.c
setsockopt.S
setsourcefilter.c
setuid.c
shlib-versions Remove configuration name patterns from shlib-versions. 2014-09-12 12:28:47 +00:00
shm-directory.c NPTL: Refactor named semaphore code to use shm-directory.h 2014-12-12 15:01:30 -08:00
shmat.c
shmctl.c
shmdt.c
shmget.c
shutdown.S
sigaction.c
siglist.h
signal.c
signalfd.c
sigpending.c
sigprocmask.c
sigqueue.c
sigreturn.c
sigset-cvt-mask.h
sigstack.c
sigsuspend.c
sigtimedwait.c
sigwait.c
sigwaitinfo.c
sizes.h
sleep.c
socketcall.h
socketpair.S
speed.c
statfs64.c
statvfs.c
statvfs64.c
sync_file_range.c
syscalls.list Remove __libc_nanosleep function name. 2014-11-01 12:26:09 +00:00
sysconf.c
sysctl.c
sysctl.mk
syslog.c
system.c
tcdrain.c
tcflow.c
tcflush.c
tcgetattr.c
tcgetpgrp.c
tcsendbrk.c
tcsetattr.c
tcsetpgrp.c
termio.h
testrtsig.h
time.c
timer_create.c
timer_delete.c
timer_getoverr.c
timer_gettime.c
timer_routines.c
timer_settime.c
times.c
timespec_get.c
truncate64.c
tst-clone.c
tst-fanotify.c
tst-getcpu.c
tst-setgetname.c
ttyname.c
ttyname_r.c
ualarm.c
umount.S
umount2.S
unlockpt.c
updwtmp.c
usleep.c
ustat.c
utimensat.c
utimes.c
utmp_file.c
vfork.c
wait.c
wait3.c
waitid.c
waitpid.c Remove __libc_waitpid function name. 2014-11-07 01:27:16 +00:00
xmknod.c
xmknodat.c
xstat.c
xstat64.c
xstatconv.c
xstatconv.h