LD_PRELOAD equivalent for Windows to preload shared libraries

AppInit_DLLs. http://support.microsoft.com/kb/197571 But see also: AppInit_DLLs should be renamed Deadlock_Or_Crash_Randomly_DLLs https://web.archive.org/web/20080625171611/http://blogs.msdn.com/oldnewthing/archive/2007/12/13/6648400.aspx You may also want to look into “DLL Injection”. Four approaches (including AppInint_DLLs) are described here: http://en.wikipedia.org/wiki/DLL_Injection

How do you tell Valgrind to completely suppress a particular .so file?

For most of the suppression types, you omit the wildcard, like so: { name Memcheck:Cond obj:/path/to/lib/lib.so.10.1 } { name Memcheck:Free obj:/path/to/lib/lib.so.10.1 } { name Memcheck:Value8 obj:/path/to/lib/lib.so.10.1 } Note that you must list each type of error separately, you can’t wildcard them. You must also list the entire pathname of the library (as shown by valgrind, … Read more