]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Use elf_relocaddr() to find the address for R_RISCV_RELATIVE
authorbr <br@FreeBSD.org>
Wed, 12 Sep 2018 08:12:34 +0000 (08:12 +0000)
committerbr <br@FreeBSD.org>
Wed, 12 Sep 2018 08:12:34 +0000 (08:12 +0000)
commit3905e1af5081052cd784403377ed2136f16c47fe
tree7dd08acbd2bbf017cc7e59bb3d16f144dfe0f6dc
parent4b45af74326029d57279e76f8f7d3f393fe56f66
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
sys/riscv/riscv/elf_machdep.c