HomeFreeBSD

riscv: fix relocation handling for R_RISCV_64

Description

riscv: fix relocation handling for R_RISCV_64

It requires the addend. In practice this doesn't seem to be a problem,
since relocations of this type are all with an addend of zero.
Obviously, we still want to handle this correctly if that ever changes.

Reviewed by: markj
MFC after: 1 week
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D37039

(cherry picked from commit a9b24e4dc28abfe668038e4c053d77b6dd4dce19)

Details

Provenance
mhorneAuthored on Oct 20 2022, 2:56 PM
Reviewer
markj
Differential Revision
D37039: riscv: fix relocation handling for R_RISCV_64
Parents
rGd0ede7bd59e5: riscv: reject CPUs with mmu-type "riscv,none"
Branches
Unknown
Tags
Unknown