]> git.sur5r.net Git - u-boot/commit
riscv: Add support for HI20 PE relocations
authorAlexander Graf <agraf@suse.de>
Tue, 5 Jun 2018 17:20:32 +0000 (19:20 +0200)
committerAlexander Graf <agraf@suse.de>
Thu, 14 Jun 2018 08:52:14 +0000 (10:52 +0200)
commitde452c04c391948dbff68029e900fbb10dd5efb2
tree9806d73ef898c5ad05b372ecc6fb6efe67b4a5f2
parentacaee30608ce203289a180d664b7f0abb2e64ee7
riscv: Add support for HI20 PE relocations

The PE standard allows for HI20/LOW12 relocations. Within the efi_loader
target we always know that our relocation target is 4k aligned, so we
don't need to worry about the LOW12 part.

This patch adds support for the respective relocations. With this and a
few grub patches I have cooking in parallel I'm able to run grub on RISC-V.

Signed-off-by: Alexander Graf <agraf@suse.de>
include/pe.h
lib/efi_loader/efi_image_loader.c