efi_loader: fix relocation on x86_64
authorHeinrich Schuchardt <xypron.glpk@gmx.de>
Sun, 14 Oct 2018 03:52:08 +0000 (20:52 -0700)
committerAlexander Graf <agraf@suse.de>
Tue, 16 Oct 2018 13:29:15 +0000 (15:29 +0200)
commit3ce7829792c50d1e5add3d8ef88883e8298aa4eb
tree885ca66e3a63f3bc5edfe6282f1d1023a7f5ff46
parent2364b70c87a8d4ac327a44161df32d2c8e209545
efi_loader: fix relocation on x86_64

Currently the relocation of the EFI runtime on x86_64 fails. This renders
the EFI subsystem unusable. The ELF relocation records for x86_64 contain
an addend field.

Always write the function name into error messages related to the EFI
runtime relocation.

Break an excessively long line.

Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
Tested-by: Bin Meng <bmeng.cn@gmail.com>
Signed-off-by: Bin Meng <bmeng.cn@gmail.com>
Signed-off-by: Alexander Graf <agraf@suse.de>
lib/efi_loader/efi_runtime.c