]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Use elf_relocaddr() to find the address for R_RISCV_RELATIVE
authorRuslan Bukin <br@FreeBSD.org>
Wed, 12 Sep 2018 08:12:34 +0000 (08:12 +0000)
committerRuslan Bukin <br@FreeBSD.org>
Wed, 12 Sep 2018 08:12:34 +0000 (08:12 +0000)
commit752a8ea48e18975251892b1468bb01db82494546
tree7dd08acbd2bbf017cc7e59bb3d16f144dfe0f6dc
parent86c5937532768ce2936c70b1be159af4c11d35ef
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