On Thu, 17 Apr 2025, Pali Rohár wrote:

This will ensure that _pei386_runtime_relocator() is called as the first
function and that all those runtime init code functions are called in
guarded block which prevents duplicate code execution.
---

About the purpose of these patches, the "which prevents duplicate code execution" - is that specifically a target of this patch? Because as far as I remember (or maybe I misremember?), last time we discussed such things, we couldn't really come up with even a theoretical case when the guard actually would be needed?

Then again, I presume the msvc startup code has something similar, and I guess it has been there for some reason at some point in time at least.

And I guess it makes things more consistent if all initialization is within the same guarded block...

// Martin

_______________________________________________
Mingw-w64-public mailing list
Mingw-w64-public@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public

Reply via email to