summaryrefslogtreecommitdiffstats
path: root/IntelFsp2Pkg
diff options
context:
space:
mode:
authorDandan Bi <dandan.bi@intel.com>2019-01-17 15:25:26 +0800
committerLiming Gao <liming.gao@intel.com>2019-01-21 10:12:04 +0800
commiteb76b76218d5bac867414e2ff6dd09c6e7c700dd (patch)
tree9c4cff23c1cee9bc9c01912d9cbfc2d26158ce45 /IntelFsp2Pkg
parentcce9d763580a955d294a5e3696cbe07a03965e2b (diff)
downloadedk2-eb76b76218d5bac867414e2ff6dd09c6e7c700dd.tar.gz
edk2-eb76b76218d5bac867414e2ff6dd09c6e7c700dd.tar.bz2
edk2-eb76b76218d5bac867414e2ff6dd09c6e7c700dd.zip
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>
Diffstat (limited to 'IntelFsp2Pkg')
0 files changed, 0 insertions, 0 deletions