glibc/inet
Joseph Myers 17c199ee92 Fix gethostbyaddr in6addr_any, in6addr_loopback namespace (bug 18532).
gethostbyaddr brings in references to in6addr_any and thereby
in6addr_loopback, which aren't in all the standards containing
gethostbyaddr (gethostbyaddr is in XPG4 and UNIX98, in6addr_any and
in6addr_loopback are new in POSIX.1:2001).  This patch fixes this by
making those symbols into weak aliases (safe in this case, unlike for
most data symbols, because these data symbols are const).

Tested for x86_64 and x86 (testsuite, and comparison of disassembly of
installed stripped shared libraries).  Disassembly is unchanged for
x86_64; for x86, I see some changes of stack offsets, but no other
code generation changes or code size differences.

	[BZ #18532]
	* inet/in6_addr.c (in6addr_any): Rename to __in6addr_any and
	define as weak alias of __in6addr_any.  Use libc_hidden_data_weak.
	(in6addr_loopback): Rename to __in6addr_loopback and define as
	weak alias of __in6addr_loopback.  Use libc_hidden_data_weak.
	* include/netinet/in.h (__in6addr_loopback): Declare.  Use
	libc_hidden_proto.
	(__in6addr_any): Likewise.
	* inet/gethstbyad_r.c (PREPROCESS): Use __in6addr_any instead of
	in6addr_any.
	* conform/Makefile (test-xfail-XPG4/netdb.h/linknamespace): Remove
	variable.
	(test-xfail-UNIX98/netdb.h/linknamespace): Likewise.
2015-06-17 20:08:22 +00:00
..
arpa Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
netinet in.h: Coordinate in6_pktinfo and ip6_mtuinfo for kernel and glibc [BZ #15850] 2015-02-25 00:13:28 -05:00
protocols
aliases.h Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
bug-if1.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
check_native.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
check_pf.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
ether_aton_r.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
ether_aton.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
ether_hton.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
ether_line.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
ether_ntoa_r.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
ether_ntoa.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
ether_ntoh.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
getaliasent_r.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
getaliasent.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
getaliasname_r.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
getaliasname.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
gethstbyad_r.c Fix gethostbyaddr in6addr_any, in6addr_loopback namespace (bug 18532). 2015-06-17 20:08:22 +00:00
gethstbyad.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
gethstbynm2_r.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
gethstbynm2.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
gethstbynm_r.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
gethstbynm.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
gethstent_r.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
gethstent.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
getipv4sourcefilter.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
getnameinfo.c getnameinfo: Use struct scratch_buffer instead of extend_alloca 2015-04-08 21:07:44 +02:00
getnetbyad_r.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
getnetbyad.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
getnetbynm_r.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
getnetbynm.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
getnetent_r.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
getnetent.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
getnetgrent_r.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
getnetgrent.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
getproto_r.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
getproto.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
getprtent_r.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
getprtent.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
getprtname_r.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
getprtname.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
getservent_r.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
getservent.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
getsourcefilter.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
getsrvbynm_r.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
getsrvbynm.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
getsrvbypt_r.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
getsrvbypt.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
herrno-loc.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
herrno.c Fix h_errno namespace (bug 18520). 2015-06-12 10:10:18 +00:00
htonl.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
htons.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
htontest.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
if_index.c Add missing libc_hidden_weak to stub if_nameindex, if_freenameindex. 2015-01-23 11:29:02 -08:00
ifaddrs.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
ifaddrs.h Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
ifreq.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
in6_addr.c Fix gethostbyaddr in6addr_any, in6addr_loopback namespace (bug 18532). 2015-06-17 20:08:22 +00:00
inet6_opt.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
inet6_option.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
inet6_rth.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
inet_lnaof.c
inet_mkadr.c Fix resolver inet_* namespace (bug 17722). 2014-12-17 18:09:11 +00:00
inet_net.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
inet_netof.c
inet_ntoa.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
Makefile Exclude rpcent functions and NSS backends for rpc, key when excluding sunrpc. 2015-02-06 10:43:19 -08:00
netgroup.h Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
rcmd.c * inet/rcmd.c (rresvport_af): Change ss to anonymous union 2015-05-19 13:09:01 -07:00
rexec.c
ruserpass.c
setipv4sourcefilter.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
setsourcefilter.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
test_ifindex.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
test-ifaddrs.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
test-inet6_opt.c Modify several tests to use test-skeleton.c 2014-11-05 15:24:08 +05:30
tst-checks.c
tst-ether_aton.c
tst-ether_line.c
tst-gethnm.c Modify several tests to use test-skeleton.c 2014-11-05 15:24:08 +05:30
tst-getni1.c
tst-getni2.c
tst-inet6_rth.c
tst-network.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
tst-ntoa.c Modify several tests to use test-skeleton.c 2014-11-05 15:24:08 +05:30
Versions Exclude rpcent functions and NSS backends for rpc, key when excluding sunrpc. 2015-02-06 10:43:19 -08:00