[runtime] Refactor pinvoke probing (#12795)
commitd36f437f60888e35c50229ab27b528889a5f2053
authorAleksey Kliger (λgeek) <akliger@gmail.com>
Thu, 7 Feb 2019 01:50:32 +0000 (6 20:50 -0500)
committerZoltan Varga <vargaz@gmail.com>
Thu, 7 Feb 2019 01:50:32 +0000 (6 20:50 -0500)
treea6ffb106b1e4d2fbb8a9c6bd72ccec63cfbc5ad4
parent9453281f0c4d530c65b1792db5ac2909aaac81a3
[runtime] Refactor pinvoke probing (#12795)

* [runtime] Mark mono_lookup_pinvoke_call external only

Runtime should use mono_lookup_pinvoke_call_internal

* [loader] Factor out helper functions from mono_lookup_pinvoke_call

Separate the logic for probing for a dynamic library module from the logic for
looking for a symbol inside the module.

* [loader] Factor out relative directory probing in pinvoke lookup
mono/metadata/icall.c
mono/metadata/loader-internals.h
mono/metadata/loader.c
mono/metadata/loader.h
mono/metadata/marshal.c
mono/mini/mini-runtime.c