riscv: Support R_RISCV_ADD64 and R_RISCV_SUB64 relocs
authorEmil Renner Berthing <kernel@esmil.dk>
Tue, 14 Jul 2020 07:40:43 +0000 (09:40 +0200)
committerPalmer Dabbelt <palmerdabbelt@google.com>
Thu, 30 Jul 2020 18:37:41 +0000 (11:37 -0700)
commit11a54f422b0d2680be57bbb9f85696ef89d9cda1
tree512496fcd1313bae778e39a2d0ac0e67b28bf461
parent8e0c02f27253cde5400f7e57b1369690c6e614a0
riscv: Support R_RISCV_ADD64 and R_RISCV_SUB64 relocs

These are needed for the __jump_table in modules using
static keys/jump-labels with the layout from
HAVE_ARCH_JUMP_LABEL_RELATIVE on 64bit kernels.

Signed-off-by: Emil Renner Berthing <kernel@esmil.dk>
Reviewed-by: Björn Töpel <bjorn.topel@gmail.com>
Tested-by: Björn Töpel <bjorn.topel@gmail.com>
Signed-off-by: Palmer Dabbelt <palmerdabbelt@google.com>
arch/riscv/kernel/module.c