[aot] Load the container module from load_aot_module (), so its loaded after mscorlib...
authormonojenkins <jo.shields+jenkins@xamarin.com>
Tue, 2 Jun 2020 19:53:01 +0000 (15:53 -0400)
committerGitHub <noreply@github.com>
Tue, 2 Jun 2020 19:53:01 +0000 (15:53 -0400)
commit6e515000fdd947b645984c2ac4103bf1a4681f0c
tree52a7826ac1d3ea2805e4c8ca2afd61334576e40c
parent8fd2f0801c8607465b3af513c2243f49715bf907
[aot] Load the container module from load_aot_module (), so its loaded after mscorlib is loaded. (#37264)

If its loaded later, its loading could trigger the execution of managed code i.e. loader callbacks on netcore.

<!--
Thank you for your Pull Request!

If you are new to contributing to Mono, please try to do your best at conforming to our coding guidelines http://www.mono-project.com/community/contributing/coding-guidelines/ but don't worry if you get something wrong. One of the project members will help you to get things landed.

Does your pull request fix any of the existing issues? Please use the following format: Fixes #issue-number
-->

Co-authored-by: vargaz <vargaz@users.noreply.github.com>
src/mono/mono/metadata/appdomain.c
src/mono/mono/metadata/metadata-internals.h
src/mono/mono/mini/aot-runtime.c