audk/MdePkg
Dandan Bi eb76b76218 MdePkg/BasePeCoffLib: Correct the address of RelocBaseEnd
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=1426

When calculating the address of RelocBaseEnd,
the RelocBase address is ImageBase + RelocDir->VirtualAddress,
the size of RelocDir is RelocDir->Size.
So the RelocBaseEnd address is:
ImageBase + RelocDir->VirtualAddress + RelocDir->Size - 1
not
ImageBase + RelocDir->VirtualAddress + RelocDir->Size

This patch is to fix this issue when call PeCoffLoaderImageAddress
function to calculate the address of RelocBaseEnd.

Cc: Michael D Kinney <michael.d.kinney@intel.com>
Cc: Liming Gao <liming.gao@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Dandan Bi <dandan.bi@intel.com>
Tested-by: Gary Lin <glin@suse.com>
Reviewed-by: Liming Gao <liming.gao@intel.com>
2019-01-21 10:12:04 +08:00
..
Include MdePkg: introduce standalone MM entry point library class 2019-01-16 20:10:51 +01:00
Library MdePkg/BasePeCoffLib: Correct the address of RelocBaseEnd 2019-01-21 10:12:04 +08:00
MdePkg.dec MdePkg: introduce standalone MM entry point library class 2019-01-16 20:10:51 +01:00
MdePkg.dsc MdePkg: add MM_STANDALONE implementation of MmServicesTableLib 2019-01-16 20:10:51 +01:00
MdePkg.uni MdePkg: Removing ipf which is no longer supported from edk2. 2018-09-25 23:48:21 +08:00
MdePkgExtra.uni MdePkg: Clean up source files 2018-06-28 11:19:47 +08:00