Change update size for PBA (#419)
author조웅석/Common Platform Lab(SR)/삼성전자 <ws77.cho@samsung.com>
Wed, 22 Jun 2022 10:34:57 +0000 (19:34 +0900)
committerGitHub Enterprise <noreply-CODE@samsung.com>
Wed, 22 Jun 2022 10:34:57 +0000 (19:34 +0900)
commit50662703de60935c936c11768a0c530e88f50f50
treebbf3cbfc201cf418e53a590e151dc6489301c6fc
parent732a1d9a6ebf060f5ea30363d8de311e1b5d7fb8
Change update size for PBA (#419)

When using PBA, file size was used to calculate next base address of assembly.
However, there is a problem that the file size is smaller than the image size loaded in the actual memory.
when native image files are loaded in the memory area, some native image files cannot be loaded where desired because of area overlapping.

So, get size of image from OptionalHeader, and use that value for updating next base address.
NativeLauncher/inc/r2r_checker.h
NativeLauncher/tool/ni_common.cc
NativeLauncher/tool/r2r_checker.cc
packaging/dotnet-launcher.spec