From f8028afeaffd727bc335681491b25a6f8fe51f4d Mon Sep 17 00:00:00 2001 From: Mingxiang Lu Date: Sun, 29 Sep 2024 20:26:43 +0800 Subject: fix TLS memory leak with dlopen Signed-off-by: Mingxiang Lu Signed-off-by: Waldemar Brodkorb --- libpthread/nptl/sysdeps/xtensa/dl-tls.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'libpthread/nptl/sysdeps/xtensa') diff --git a/libpthread/nptl/sysdeps/xtensa/dl-tls.h b/libpthread/nptl/sysdeps/xtensa/dl-tls.h index 5fc4ea2d0..dfc91753e 100644 --- a/libpthread/nptl/sysdeps/xtensa/dl-tls.h +++ b/libpthread/nptl/sysdeps/xtensa/dl-tls.h @@ -70,3 +70,6 @@ extern ptrdiff_t attribute_hidden _dl_tlsdesc_dynamic(struct tlsdesc_dynamic_arg *); #endif #endif + +/* Value used for dtv entries for which the allocation is delayed. */ +#define TLS_DTV_UNALLOCATED ((void *) -1l) -- cgit v1.2.3