在 2024-07-27 12:12, LIU Hao 写道:
 From bd2fffef2948190323fb4f573c812925f0e8be51 Mon Sep 17 00:00:00 2001
From: LIU Hao<lh_mo...@126.com>
Date: Sat, 27 Jul 2024 11:55:40 +0800
Subject: [PATCH] winpthreads: Free TLS index when library is unloaded

This ensures the TLS index is freed when the winpthreads DLL is unloaded.

When winpthreads is linked statically (maybe as part of another DL)L, the
winpthreads TLS callback is registered in the `.CRT$XLF` section and is
invoked after the other TLS callbacks in `.CRT$XLB` to `.CRT$XLD`, so this
should be safe.

Well, it looks that this isn't so safe as I thought: https://github.com/mingw-w64/mingw-w64/issues/52#issuecomment-2254183669

Maybe this should be left alone.



--
Best regards,
LIU Hao

Attachment: OpenPGP_signature.asc
Description: OpenPGP digital signature

_______________________________________________
Mingw-w64-public mailing list
Mingw-w64-public@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public

Reply via email to