diff options
author | Ulrich Drepper <drepper@redhat.com> | 2003-02-07 20:46:55 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 2003-02-07 20:46:55 +0000 |
commit | 1f503475a56b198a86cd7df1a3869aec81baf1eb (patch) | |
tree | 2c9611079603041a7538fd1b0e43ed4cc731a59a /inet/herrno.c | |
parent | eecc378cbb0a0dd2978b225687d7cd695962b889 (diff) | |
download | glibc-1f503475a56b198a86cd7df1a3869aec81baf1eb.tar.gz |
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/herrno.c')
-rw-r--r-- | inet/herrno.c | 7 |
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 |