]> git.proxmox.com Git - mirror_edk2.git/commit
MdePkg/BasePeCoffLib: skip runtime relocation if reloc info is invalid
authorHsueh, Hong-chihX <hong-chihx.hsueh@intel.com>
Wed, 30 Jan 2019 01:19:36 +0000 (09:19 +0800)
committerLiming Gao <liming.gao@intel.com>
Thu, 31 Jan 2019 03:36:09 +0000 (11:36 +0800)
commita824c7ebde0a431413329049252b8c1d3770de82
tree187d2293788683bece5c5044605895951b1a24f5
parent0d18f5db32267450b44f5d4b2fdc8627e30de007
MdePkg/BasePeCoffLib: skip runtime relocation if reloc info is invalid

Skip runtime relocation for PE images that provide invalid relocation
infomation (ex: RelocDir->Size = 0) to fix a hang observed while booting
Windows.

Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Neo Hsueh <hong-chihx.hsueh@intel.com>
Cc: Michael D Kinney <michael.d.kinney@intel.com>
Cc: Liming Gao <liming.gao@intel.com>
Cc: Dandan Bi <dandan.bi@intel.com>
Cc: Laszlo Ersek <lersek@redhat.com>
Reviewed-by: Liming Gao <liming.gao@intel.com>
Reviewed-by: Bi Dandan <dandan.bi@intel.com>
Reviewed-by: Laszlo Ersek <lersek@redhat.com>
MdePkg/Library/BasePeCoffLib/BasePeCoff.c