aboutsummaryrefslogtreecommitdiff
path: root/sysdeps/generic/ldsodefs.h
diff options
context:
space:
mode:
authorStan Shebs <stanshebs@google.com>2019-11-08 12:40:53 -0800
committerFangrui Song <i@maskray.me>2021-08-27 17:26:03 -0700
commit6a12504329bf3473c081d40c90a823e92d70af51 (patch)
treefa0d17bfad460d914859483b859e221635f60274 /sysdeps/generic/ldsodefs.h
parent396a77d48eb3652686bc29c28ec9cc632ad579e2 (diff)
downloadglibc-6a12504329bf3473c081d40c90a823e92d70af51.zip
glibc-6a12504329bf3473c081d40c90a823e92d70af51.tar.gz
glibc-6a12504329bf3473c081d40c90a823e92d70af51.tar.bz2
Add an LD_DEBUG=tls option to help debug thread-local storage handling in ld.so
Diffstat (limited to 'sysdeps/generic/ldsodefs.h')
-rw-r--r--sysdeps/generic/ldsodefs.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/sysdeps/generic/ldsodefs.h b/sysdeps/generic/ldsodefs.h
index 32647f8..0495f85 100644
--- a/sysdeps/generic/ldsodefs.h
+++ b/sysdeps/generic/ldsodefs.h
@@ -500,6 +500,8 @@ struct rtld_global_ro
/* Google-local. */
#define DL_DEBUG_FASTLOAD (1 << 12)
+#define DL_DEBUG_TLS (1 << 13)
+
/* OS version. */
EXTERN unsigned int _dl_osversion;
/* Platform name. */
@@ -1196,6 +1198,9 @@ extern struct link_map *_dl_update_slotinfo (unsigned long int req_modid)
but never touch anything. Return null if it's not allocated yet. */
extern void *_dl_tls_get_addr_soft (struct link_map *l) attribute_hidden;
+/* Return an id for the current thread if possible, otherwise 0. */
+extern pid_t _dl_tls_tid (void) attribute_hidden;
+
extern int _dl_addr_inside_object (struct link_map *l, const ElfW(Addr) addr)
attribute_hidden;