]> git.baikalelectronics.ru Git - uboot.git/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)
commit58452d31cf5fe4b740576892ec77e6e18c3dd8ad
tree9806d73ef898c5ad05b372ecc6fb6efe67b4a5f2
parent2997c3c26f018b3a58e21f65dbe38a9d39b2f053
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