about summary refs log tree commit diff
path: root/elf/dl-lookup.c
diff options
context:
space:
mode:
Diffstat (limited to 'elf/dl-lookup.c')
-rw-r--r--elf/dl-lookup.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/elf/dl-lookup.c b/elf/dl-lookup.c
index 895b60df7d..b21eeb097a 100644
--- a/elf/dl-lookup.c
+++ b/elf/dl-lookup.c
@@ -663,6 +663,12 @@ _dl_debug_bindings (const char *undef_name, struct link_map *undef_map,
 			(int) sizeof (ElfW(Addr)) * 2,
 			(ElfW(Addr)) (val.s ? val.s->st_value : 0));
 
+#ifdef USE_TLS
+          if (value->s
+	      && (__builtin_expect (ELFW(ST_TYPE) (value->s->st_info)
+				    == STT_TLS, 0)))
+	    type_class = 4;
+#endif
 	  _dl_printf ("/%x %s\n", type_class, undef_name);
 	}
     }