[LTP] clone10.c failed on 32bit compilation
Petr Vorel
pvorel@suse.cz
Fri Jan 16 08:07:08 CET 2026
FYI the patch is invalid. It should have been:
diff --git include/lapi/tls.h include/lapi/tls.h
index a067872e0f..eee77899e8 100644
--- include/lapi/tls.h
+++ include/lapi/tls.h
@@ -64,7 +64,7 @@ static inline void init_tls(void)
tls_ptr = allocate_tls_area();
tls_desc = SAFE_MALLOC(sizeof(*tls_desc));
memset(tls_desc, 0, sizeof(*tls_desc));
- tls_desc->entry_number = -1;
+ tls_desc->entry_number = 13;
tls_desc->base_addr = (unsigned long)tls_ptr;
tls_desc->limit = TLS_SIZE;
tls_desc->seg_32bit = 1;
@@ -72,7 +72,7 @@ static inline void init_tls(void)
tls_desc->read_exec_only = 0;
tls_desc->limit_in_pages = 0;
tls_desc->seg_not_present = 0;
- tls_desc->useable = 1;
+ tls_ptr = tls_desc;
#else
tst_brk(TCONF, "Unsupported architecture for TLS");
More information about the ltp
mailing list