On Wed Jun 19 16:43:56 2024 +0000, Rémi Bernon wrote:
As far as I understand, except for GNU `__attribute__((destructor))`, the cleanup is registered with `atexit` instead, so it doesn't look like it needs destructors support? MinGW runtime doesn't seem to have them (or maybe I just didn't find them).
Sure but `atexit` is process-global right? IIUC our DLL crt0 doesn't provide its own module-local atexit. Calling unloaded DLL functions at process exit will UAF.