在 2025-3-31 01:10, Tom Kacvinsky 写道:
Full link line

/c/DEV/MINGW-packages/mingw-w64-gcc/src/build-UCRT64/./gcc/xgcc
(... ...)
unwind-sjlj_s.o
unwind-c_s.o
emutls_s.o

^^^^^^^^^^^^

Emutls still exists on Linux:

   $ objdump -T  /usr/lib/x86_64-linux-gnu/libgcc_s.so.1  | grep -F emutls
   0000000000019700 g    DF .text  0000000000000184  GCC_4.3.0   
__emutls_get_address
   0000000000019890 g    DF .text  0000000000000035  GCC_4.3.0   
__emutls_register_common

On Linux I suspect threading is built into libc.so, so there is no explicitly 
dependency on libpthread.so.


I wonder how much of all of this is necessary for building an SEH only 
exception handler.

SEH doesn't require TLS (but SJLJ does). If dependency on winpthread is undesired, you may build the win32 thread model.


--
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