How does unreal makes sure IMPLEMENT_MODULE is linked on monolithic builds?

I was wondering how unreal makes sure the static variable generated by IMPLEMENT_MODULE is linked during the monolithic build. The IMPLEMENT_MODULE is called inside the .cpp files so there is no way to predict the order or even if the variables generated by this macro will ever be initialized. Am I wrong?