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>
This commit is contained in:
Andreas Schwab 2018-06-12 19:26:36 +02:00 • committed by Palmer Dabbelt
commit 781c8fe2da
No known key found for this signature in database
GPG key ID: EF4CA1502CCBAB41