summaryrefslogtreecommitdiff
path: root/lib/linux_string.c
diff options
context:
space:
mode:
authorIvan Gorinov <[email protected]>2018-05-02 16:36:02 -0700
committerAlexander Graf <[email protected]>2018-06-03 15:27:20 +0200
commite2dc4229ad009df13b131fcc16516e79c14276b7 (patch)
tree883424068e4d09aeba252773c304057c340ed6c0 /lib/linux_string.c
parent040b2583c3a87c83606b3df64ea653ccaf3aea62 (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 <[email protected]> Reviewed-by: Heinrich Schuchardt <[email protected]> Signed-off-by: Alexander Graf <[email protected]>
Diffstat (limited to 'lib/linux_string.c')
0 files changed, 0 insertions, 0 deletions