diff options
author | Konstantin Baladurin <k.baladurin@samsung.com> | 2019-07-05 19:36:28 +0300 |
---|---|---|
committer | 이형주/Common Platform Lab(SR)/Staff Engineer/삼성전자 <leee.lee@samsung.com> | 2019-10-15 06:54:39 +0900 |
commit | 5647236eac21fb0e01a55a12289a66bc9f874f19 (patch) | |
tree | f81eede622d29edc955cf9fe3d5dcb670ec95675 /src/pal/src/include/pal/module.h | |
parent | c4c19b84a37bbc750e2cc13570dd096b13abfff0 (diff) | |
download | coreclr-submit/tizen_5.5_mobile_hotfix/20201026.185106.tar.gz coreclr-submit/tizen_5.5_mobile_hotfix/20201026.185106.tar.bz2 coreclr-submit/tizen_5.5_mobile_hotfix/20201026.185106.zip |
[Tizen] Add coreclr_preload_assembly to CoreCLR host APItizen_5.5.m2_releasesubmit/tizen_5.5_mobile_hotfix/20201026.185106submit/tizen_5.5/20191031.000006submit/tizen/20191014.221258accepted/tizen/unified/20191015.012049accepted/tizen/5.5/unified/mobile/hotfix/20201027.061818accepted/tizen/5.5/unified/20191031.004944
Diffstat (limited to 'src/pal/src/include/pal/module.h')
-rw-r--r-- | src/pal/src/include/pal/module.h | 48 |
1 files changed, 47 insertions, 1 deletions
diff --git a/src/pal/src/include/pal/module.h b/src/pal/src/include/pal/module.h index 66ac23834a..ee5d000d63 100644 --- a/src/pal/src/include/pal/module.h +++ b/src/pal/src/include/pal/module.h @@ -51,6 +51,20 @@ typedef struct _MODSTRUCT struct _MODSTRUCT *prev; } MODSTRUCT; +/*++ + LOADFindPreloadedPEFile - + + Find image in list of preloaded + +Parameters: + IN wszPath - path to mapped file + +Return value: + non-NULL - the base address of the mapped image + NULL - image is not in the list of preloaded. +--*/ + +void * LOADFindPreloadedPEFile(LPCWSTR wszPath); /*++ Function : @@ -145,12 +159,14 @@ Abstract Parameters: IN hFile - The file to load + IN wszPath - File path + OUT isPreloaded - Flag whether pefile was preloaded Return value: A valid base address if successful. 0 if failure --*/ -void * PAL_LOADLoadPEFile(HANDLE hFile); +void * PAL_LOADLoadPEFile(HANDLE hFile, LPCWSTR wszPath, BOOL *isPreloaded); /*++ PAL_LOADUnloadPEFile @@ -167,6 +183,36 @@ Return value: BOOL PAL_LOADUnloadPEFile(void * ptr); /*++ +Function: + PAL_LOADPreloadPEFile + +Abstract + Preloads a PE file into memory. Properly maps all of the sections in the PE file. Returns a pointer to the + loaded base. + +Parameters: + IN szPath - path of file to load + +Return value: + A valid base address if successful. + 0 if failure +--*/ +void * +PAL_LOADPreloadPEFile(LPCSTR szPath); + +/*++ + PAL_LOADUnloadPreloadedPEFiles + + Unload all PE files that were loaded by PAL_LOADPreloadPEFile(). + +Return value: + TRUE - success + FALSE - failure +--*/ +BOOL +PAL_LOADUnloadPreloadedPEFiles(); + +/*++ LOADInitializeCoreCLRModule Run the initialization methods for CoreCLR module. |