diff options
author | Andreas Jaeger <aj@suse.de> | 2000-05-15 07:15:04 +0000 |
---|---|---|
committer | Andreas Jaeger <aj@suse.de> | 2000-05-15 07:15:04 +0000 |
commit | f14273c5a2409a2e0d0ceb0897a0bb8b855bdb7f (patch) | |
tree | e8d37f8be41f091a9d33a316c5529044144433bd /elf/soinit.c | |
parent | 99356b9b902fc8d96a3cf7891cc9f8d1ff6a0163 (diff) | |
download | glibc-f14273c5a2409a2e0d0ceb0897a0bb8b855bdb7f.tar.gz |
2000-05-13 Jakub Jelinek <jakub@redhat.com>
* elf/soinit.c (__libc_global_ctors): Move
__pthread_initialize_minimal call out of HAVE_DWARF2_* defines.
* resolv/resolv.h (__res_state): Added __attribute__((const)).
(_res): If __RES_PTHREAD_INTERNAL is defined, declare it as
variable, don't define it to __res_state call.
2000-05-13 Jakub Jelinek <jakub@redhat.com>
* internals.h (__RES_PTHREAD_INTERNAL): Define.
2000-05-13 Jakub Jelinek <jakub@redhat.com>
* internals.h (__RES_PTHREAD_INTERNAL): Define.
Diffstat (limited to 'elf/soinit.c')
-rw-r--r-- | elf/soinit.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/elf/soinit.c b/elf/soinit.c index 7db054e4d4..3cb5584f6c 100644 --- a/elf/soinit.c +++ b/elf/soinit.c @@ -49,13 +49,14 @@ __libc_global_ctors (void) { /* Call constructor functions. */ run_hooks (__CTOR_LIST__); -#ifdef HAVE_DWARF2_UNWIND_INFO -# ifdef HAVE_DWARF2_UNWIND_INFO_STATIC + /* Initialize the thread library at least a bit since the libgcc functions are using thread functions if these are available. */ if (__pthread_initialize_minimal) __pthread_initialize_minimal (); +#ifdef HAVE_DWARF2_UNWIND_INFO +# ifdef HAVE_DWARF2_UNWIND_INFO_STATIC { static struct object ob; __register_frame_info (__EH_FRAME_BEGIN__, &ob); |