mirror of
git://sourceware.org/git/glibc.git
synced 2025-03-19 13:40:59 +08:00
Update.
* elf/dl-lookup.c: Include <tls.h>. * elf/do-lookup.h (FCT): Don't discard STT_TLS symbols.
This commit is contained in:
parent
a330abe2cd
commit
f1cc669a8c
@ -1,5 +1,8 @@
|
||||
2002-02-10 Ulrich Drepper <drepper@redhat.com>
|
||||
|
||||
* elf/dl-lookup.c: Include <tls.h>.
|
||||
* elf/do-lookup.h (FCT): Don't discard STT_TLS symbols.
|
||||
|
||||
* sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): More changes
|
||||
required by passing pointer to last element of the list.
|
||||
|
||||
|
@ -26,6 +26,7 @@
|
||||
#include "dl-hash.h"
|
||||
#include <dl-machine.h>
|
||||
#include <bits/libc-lock.h>
|
||||
#include <tls.h>
|
||||
|
||||
#include <assert.h>
|
||||
|
||||
|
@ -83,9 +83,14 @@ FCT (const char *undef_name, unsigned long int hash, const ElfW(Sym) *ref,
|
||||
(type_class & (sym->st_shndx == SHN_UNDEF)))
|
||||
continue;
|
||||
|
||||
if (ELFW(ST_TYPE) (sym->st_info) > STT_FUNC)
|
||||
/* Ignore all but STT_NOTYPE, STT_OBJECT and STT_FUNC entries
|
||||
since these are no code/data definitions. */
|
||||
if (ELFW(ST_TYPE) (sym->st_info) > STT_FUNC
|
||||
#ifdef USE_TLS
|
||||
&& ELFW(ST_TYPE) (sym->st_info) != STT_TLS
|
||||
#endif
|
||||
)
|
||||
/* Ignore all but STT_NOTYPE, STT_OBJECT and STT_FUNC
|
||||
entries (and STT_TLS if TLS is supported) since these
|
||||
are no code/data definitions. */
|
||||
continue;
|
||||
|
||||
if (sym != ref && strcmp (strtab + sym->st_name, undef_name))
|
||||
|
Loading…
x
Reference in New Issue
Block a user