commit | c7270bca55d6fe52fe20155acd7b47f842cb35bb | [log] [tgz] |
---|---|---|
author | Ivan Gorinov <ivan.gorinov@intel.com> | Wed May 02 16:36:02 2018 -0700 |
committer | Alexander Graf <agraf@suse.de> | Sun Jun 03 15:27:20 2018 +0200 |
tree | 883424068e4d09aeba252773c304057c340ed6c0 | |
parent | 246722427e96bf90aa860beb07b81d9101967505 [diff] |
efi_loader: correctly apply relocations from the .reloc section Instead of difference between preferred and actual image base, the actual base is added to the fields specified in the .reloc section. Use ImageBase from PE optional header to compute the delta, exit early if the image is loaded at the preferred address. Signed-off-by: Ivan Gorinov <ivan.gorinov@intel.com> Reviewed-by: Heinrich Schuchardt <xypron.glpk@gmx.de> Signed-off-by: Alexander Graf <agraf@suse.de>