mirror of
https://sourceware.org/git/glibc.git
synced 2025-07-28 00:21:52 +03:00
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>.
This commit is contained in:
@ -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. */
|
||||
|
Reference in New Issue
Block a user