[U-Boot] [PATCH] efi_loader: correctly apply relocations from the .reloc section

2018-05-02 Thread Ivan Gorinov
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 --- lib/efi_

Re: [U-Boot] [PATCH] efi_loader: correctly apply relocations from the .reloc section

2018-05-03 Thread Heinrich Schuchardt
On 05/03/2018 01:36 AM, Ivan Gorinov wrote: 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 addres