diff options
Diffstat (limited to 'sysdeps/generic')
-rw-r--r-- | sysdeps/generic/ldsodefs.h | 6 | ||||
-rw-r--r-- | sysdeps/generic/tls.h | 22 |
2 files changed, 28 insertions, 0 deletions
diff --git a/sysdeps/generic/ldsodefs.h b/sysdeps/generic/ldsodefs.h index 0f63799..08785a8 100644 --- a/sysdeps/generic/ldsodefs.h +++ b/sysdeps/generic/ldsodefs.h @@ -35,6 +35,7 @@ #include <dl-lookupcfg.h> #include <bits/libc-lock.h> #include <hp-timing.h> +#include <tls.h> __BEGIN_DECLS @@ -286,6 +287,11 @@ struct rtld_global EXTERN hp_timing_t _dl_hp_timing_overhead; #endif +#ifdef USE_TLS + /* Offset of the TLS block for ld.so from the thread-pointer. */ + EXTERN size_t _rtld_tlsoffset; +#endif + /* Name of the shared object to be profiled (if any). */ EXTERN const char *_dl_profile; /* Map of shared object to be profiled. */ diff --git a/sysdeps/generic/tls.h b/sysdeps/generic/tls.h new file mode 100644 index 0000000..3820162 --- /dev/null +++ b/sysdeps/generic/tls.h @@ -0,0 +1,22 @@ +/* Definition for thread-local data handling. Generic version. + Copyright (C) 2002 Free Software Foundation, Inc. + This file is part of the GNU C Library. + + The GNU C Library is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser General Public + License as published by the Free Software Foundation; either + version 2.1 of the License, or (at your option) any later version. + + The GNU C Library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public + License along with the GNU C Library; if not, write to the Free + Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA + 02111-1307 USA. */ + +/* By default no TLS support is available. This is signaled by the + absence of the symbol USE_TLS. */ +#undef USE_TLS |