Thread notices for title images
The prepared images get no DLL_THREAD_ATTACH/DETACH from Windows. A TLS callback in our exe, called on every thread of the process, passes each start and end on to the attached images: their TLS callbacks, then a DLL's DllMain. DisableThreadLibraryCalls stops the DllMain calls and fails for images with static TLS, as on Windows. Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
1 parent
d032b8a241
commit
4b2526918b
6 files changed
+210
-11
No files matched your search
@@ -18,13 +18,16 @@
|
||||
//! anything unresolved to a generated stub that reports exactly what
|
||||
//! was called;
|
||||
//! 5. initialise the title's DLLs, then run TLS callbacks and the entry
|
||||
//! point on a thread with the stack size the image asks for.
|
||||
//! point on a thread with the stack size the image asks for; from then
|
||||
//! on, pass every thread start and end on to the attached images.
|
||||
|
||||
#[cfg(windows)]
|
||||
mod crash;
|
||||
pub mod prepare;
|
||||
pub mod resolve;
|
||||
#[cfg(windows)]
|
||||
mod threads;
|
||||
#[cfg(windows)]
|
||||
mod thunks;
|
||||
#[cfg(windows)]
|
||||
mod tls;
|
||||
@@ -36,6 +39,8 @@ pub use crash::{locate, report_crashes};
|
||||
pub use prepare::{PrepareError, PreparedImage, prepare};
|
||||
pub use resolve::{ImportResolver, Provenance, Resolution};
|
||||
#[cfg(windows)]
|
||||
pub use threads::disable_thread_calls;
|
||||
#[cfg(windows)]
|
||||
pub use thunks::{UnimplementedPolicy, unimplemented_call_count};
|
||||
#[cfg(windows)]
|
||||
pub use windows::{
|
||||
|
||||
Reference in new issue
Block a user