]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit1d2b27d924316b7668a982b5820f33d9c640d60b
tree5efc5593da2d146efd839604a54bf000e56f8536
parent749c65c1b38017c420ee0efe4cf766101be057ac
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