diff options
author | "Steven J. Hill" <sjhill@realitydiluted.com> | 2006-01-06 02:53:47 +0000 |
---|---|---|
committer | "Steven J. Hill" <sjhill@realitydiluted.com> | 2006-01-06 02:53:47 +0000 |
commit | b8fce912b9167c3513c2fcd853b45d58501c0837 (patch) | |
tree | db19c1586c816749c9095bc6012d1be66d0d49fb /include/link.h | |
parent | 82efaae8d784674285fac6fcfcd4460a1901865d (diff) |
Merge from NPTL branch.
Diffstat (limited to 'include/link.h')
-rw-r--r-- | include/link.h | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/include/link.h b/include/link.h index 6fa4d0fc0..dc6502476 100644 --- a/include/link.h +++ b/include/link.h @@ -25,6 +25,9 @@ #include <elf.h> #include <dlfcn.h> #include <sys/types.h> +#ifdef _LIBC +#include <tls.h> +#endif /* We use this macro to refer to ELF types independent of the native wordsize. `ElfW(TYPE)' is used in place of `Elf32_TYPE' or `Elf64_TYPE'. */ @@ -90,6 +93,30 @@ struct link_map char *l_name; /* Absolute file name object was found in. */ ElfW(Dyn) *l_ld; /* Dynamic section of the shared object. */ struct link_map *l_next, *l_prev; /* Chain of loaded objects. */ + +#ifdef USE_TLS + /* Thread-local storage related info. */ + + /* 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 requirement of the TLS block. */ + size_t l_tls_align; + /* Offset of first byte module alignment. */ + size_t l_tls_firstbyte_offset; +# ifndef NO_TLS_OFFSET +# define NO_TLS_OFFSET 0 +# endif + /* 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; + /* Nonzero if _dl_init_static_tls should be called for this module */ + unsigned int l_need_tls_init:1; +#endif }; #ifdef __USE_GNU |