RISC-V: fix R_RISCV_ADD32/R_RISCV_SUB32 relocations
authorAndreas Schwab <schwab@suse.de>
Tue, 12 Jun 2018 17:26:36 +0000 (19:26 +0200)
committerPalmer Dabbelt <palmer@sifive.com>
Wed, 4 Jul 2018 21:12:34 +0000 (14:12 -0700)
commit781c8fe2da3d2c7c95cd7ffddbab63b80a79da4d
tree5efc5593da2d146efd839604a54bf000e56f8536
parent021c91791a5e7e85c567452f1be3e4c2c6cb6063
RISC-V: fix R_RISCV_ADD32/R_RISCV_SUB32 relocations

The R_RISCV_ADD32/R_RISCV_SUB32 relocations should add/subtract the
address of the symbol (without overflow check), not its contents.

Signed-off-by: Andreas Schwab <schwab@suse.de>
Signed-off-by: Palmer Dabbelt <palmer@sifive.com>
arch/riscv/kernel/module.c