HomeFreeBSD

Use elf_relocaddr() to find the address for R_RISCV_RELATIVE

Description

Use elf_relocaddr() to find the address for R_RISCV_RELATIVE
relocation.

elf_relocaddr() has a hook to handle VIMAGE data addresses.

This fixes VIMAGE support for RISC-V when built as a module.

Approved by: re (gjb)
Sponsored by: DARPA, AFRL

Details

Provenance
brAuthored on
Parents
rS338608: Don't mark module data as static on RISC-V.
Branches
Unknown
Tags
Unknown