aboutsummaryrefslogtreecommitdiff
path: root/resolv
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 /resolv
parenteecc378cbb0a0dd2978b225687d7cd695962b889 (diff)
downloadglibc-1f503475a56b198a86cd7df1a3869aec81baf1eb.zip
glibc-1f503475a56b198a86cd7df1a3869aec81baf1eb.tar.gz
glibc-1f503475a56b198a86cd7df1a3869aec81baf1eb.tar.bz2
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 'resolv')
-rw-r--r--resolv/res_libc.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/resolv/res_libc.c b/resolv/res_libc.c
index 9bd4e5c..763a887 100644
--- a/resolv/res_libc.c
+++ b/resolv/res_libc.c
@@ -77,8 +77,11 @@ extern __thread struct __res_state __libc_res __attribute__ ((alias ("_res")))
attribute_hidden;
# define _res __libc_res
#else
-/* The resolver state for use by single-threaded programs. */
-struct __res_state _res;
+/* The resolver state for use by single-threaded programs.
+ This differs from plain `struct __res_state _res;' in that it doesn't
+ create a common definition, but a plain symbol that resides in .bss,
+ which can have an alias. */
+struct __res_state _res __attribute__((section (".bss")));
/* We declare this with compat_symbol so that it's not
visible at link time. Programs must use the accessor functions. */