Commit Graph

2 Commits

Author SHA1 Message Date
8e3f4c6b82 test: name gta6rt's TLS callbacks from the linker map
Link gta6rt with /MAP and read gta6rt.map to name each TLS callback.
Fail on the C++ runtime's __dyn_tls_init (tlsdyn.obj) and __dyn_tls_dtor (tlsdtor.obj), allow Rust std's thread-local callback, fail on the rest.
A callback the map does not name, a missing map or a stale map fails with a message.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-26 17:51:01 +01:00
74bab76c91 tests: fail when gta6rt.exe has TLS callbacks (TEST-GTA6RT-NO-TLS-CALLBACKS)
A thread_local with a destructor gives gta6rt.exe __dyn_tls_init/__dyn_tls_dtor callbacks;
the title's own _register_thread_local_exe_atexit_callback then fast-fails (0xC0000409).
check_pe_tls_callbacks.py reads the PE TLS directory and fails on a non-empty list; a stdlib
test checks it on two in-memory PE32+ images.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-26 08:19:26 +01:00