diff options
author | Alexander Graf <agraf@suse.de> | 2018-11-04 22:25:22 +0100 |
---|---|---|
committer | Alexander Graf <agraf@suse.de> | 2018-12-02 21:59:37 +0100 |
commit | afdc4fcc8931589f2fab75d8830ab9b43d2725c4 (patch) | |
tree | 19a7dff5232914c3b6a2fdbe9d7cf367c05dd905 /env | |
parent | 4aa7492683f2d4a26d456d8734d8e59d6bd52e0d (diff) |
efi_loader: Handle RELA absolute relocations properly
With RELA absolute relocations, the relocation target contains our link
offset which we need to remove from the equation again. We did this
properly in the relative relocation path, but not in the absolute one.
So let's do this for the absolute one as well. That way, u-boot can have
a TEXT_OFFSET of != 0 and still relocate itself properly.
This fixes a bug where efi_loader did not work on the RISC-V QEMU port.
With this patch, I can successfully run UEFI applications on the RISC-V
QEMU port.
Reported-by: Auer, Lukas <lukas.auer@aisec.fraunhofer.de>
Signed-off-by: Alexander Graf <agraf@suse.de>
Tested-by: Bin Meng <bmeng.cn@gmail.com>
Tested-by: Lukas Auer <lukas.auer@aisec.fraunhofer.de>
Diffstat (limited to 'env')
0 files changed, 0 insertions, 0 deletions