mirror of
https://sourceware.org/git/glibc.git
synced 2025-08-30 17:41:16 +03:00
Update.
2002-02-06 Ulrich Drepper <drepper@redhat.com> * Versions.def [ld]: Add GLIBC_2.3. * elf/Versions [ld]: Add __tls_get_addr to GLIBC_2.3. * elf/Makefile (dl-routines): Add dl-tls. (distribute): Add dl-tls.h. * sysdeps/generic/ldsodefs.h (struct rtld_global): Remove _dl_tls_module_cnt, add _dl_tls_max_dtv_idx and _dl_tls_dtv_gaps. Add prototypes for _dl_next_tls_modid and _dl_determine_tlsoffset. * elf/dl-load.c (_dl_map_object_from_fd): Store alignment requirement along with the other info in the link map. Change queueing of init images for double linked list. Use _dl_next_tls_modid to compute l_tls_modid. * elf/rtld.c (_dl_start_final): Store alignment requirement along with the other info in rtld map and executable map. (dl_main): Add ld.so to the init image list if necessary. Compute final module ID with _dl_next_tls_modid. * include/link.h (struct link_map): Add l_tls_previmage and l_tls_align. * eld/dl-support.c: Define _dl_tls_max_dtv_idx and _dl_tls_dtv_gaps. * sysdeps/i386/elf/Versions: New file. * sysdeps/generic/dl-tls.c: New file. * sysdeps/generic/dl-tls.h: New file. * sysdeps/i386/dl-tls.h: New file. attribute((packed)) to counter stupid people misusing gcc options.
This commit is contained in:
@@ -256,20 +256,26 @@ struct link_map
|
||||
const ElfW(Sym) *ret;
|
||||
} l_lookup_cache;
|
||||
|
||||
#ifdef USE_TLS
|
||||
/* Thread-local storage related info. */
|
||||
|
||||
/* Next module in list of initialization images. */
|
||||
struct link_map *l_tls_nextimage;
|
||||
/* Previous module in list of initialization images. */
|
||||
struct link_map *l_tls_previmage;
|
||||
/* Start of the initialization image. */
|
||||
void *l_tls_initimage;
|
||||
/* Size of the initialization image. */
|
||||
size_t l_tls_initimage_size;
|
||||
/* Size of the TLS block. */
|
||||
size_t l_tls_blocksize;
|
||||
/* Alignment rquirement of the TLS block. */
|
||||
size_t l_tls_align;
|
||||
/* For objects present at startup time: offset in the static TLS block. */
|
||||
ptrdiff_t l_tls_offset;
|
||||
/* Index of the module in the dtv array. */
|
||||
size_t l_tls_modid;
|
||||
#endif
|
||||
};
|
||||
|
||||
struct dl_phdr_info
|
||||
|
Reference in New Issue
Block a user