]> git.ipfire.org Git - thirdparty/grub.git/commit
RISC-V: Handle R_RISCV_CALL_PLT reloc
authorKhem Raj <raj.khem@gmail.com>
Thu, 23 Feb 2023 21:15:08 +0000 (13:15 -0800)
committerDaniel Kiper <daniel.kiper@oracle.com>
Tue, 28 Feb 2023 13:04:11 +0000 (14:04 +0100)
commit403d6540cd608b2706cfa0cb4713f7e4b490ff45
tree51db2e84a868bc497725b9c00b57252b215fdb08
parent02478007f38424f8434dd130c57df0b3a998346c
RISC-V: Handle R_RISCV_CALL_PLT reloc

GNU assembler starting 2.40 release always generates R_RISCV_CALL_PLT
reloc for call in assembler [1], similarly LLVM does not make
distinction between R_RISCV_CALL_PLT and R_RISCV_CALL [2].

Fixes "grub-mkimage: error: relocation 0x13 is not implemented yet.".

[1] https://sourceware.org/git/?p=binutils-gdb.git;a=commit;h=70f35d72ef04cd23771875c1661c9975044a749c
[2] https://reviews.llvm.org/D132530

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Reviewed-by: Daniel Kiper <daniel.kiper@oracle.com>
grub-core/kern/riscv/dl.c
util/grub-mkimagexx.c