summary refs log tree commit diff
path: root/inet
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2003-02-07 20:46:55 +0000
committerUlrich Drepper <drepper@redhat.com>2003-02-07 20:46:55 +0000
commit1f503475a56b198a86cd7df1a3869aec81baf1eb (patch)
tree2c9611079603041a7538fd1b0e43ed4cc731a59a /inet
parenteecc378cbb0a0dd2978b225687d7cd695962b889 (diff)
downloadglibc-1f503475a56b198a86cd7df1a3869aec81baf1eb.tar.gz
glibc-1f503475a56b198a86cd7df1a3869aec81baf1eb.tar.xz
glibc-1f503475a56b198a86cd7df1a3869aec81baf1eb.zip
Update.
2003-02-07  Jakub Jelinek  <jakub@redhat.com>

	* resolv/res_libc.c (_res): Ensure _res is not common symbol,
	so that it can have aliases.
	* inet/herrno.c (h_errno): Put it into .bss not .data section.

	Patch by Lance Larsh <Lance.Larsh@oracle.com>.
Diffstat (limited to 'inet')
-rw-r--r--inet/herrno.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/inet/herrno.c b/inet/herrno.c
index bd23eb7a8e..9ff30a191b 100644
--- a/inet/herrno.c
+++ b/inet/herrno.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 1996,97,98,2002 Free Software Foundation, Inc.
+/* Copyright (C) 1996,97,98,2002,2003 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
 
    The GNU C Library is free software; you can redistribute it and/or
@@ -31,7 +31,10 @@ extern __thread int __libc_h_errno __attribute__ ((alias ("h_errno")))
   attribute_hidden;
 # define h_errno __libc_h_errno
 #else
-int h_errno = 0;
+/* This differs from plain `int h_errno;' in that it doesn't create
+   a common definition, but a plain symbol that resides in .bss,
+   which can have an alias.  */
+int h_errno __attribute__((section (".bss")));
 weak_alias (h_errno, _h_errno)
 
 /* We declare these with compat_symbol so that they are not