HomeFreeBSD

Use elf_relocaddr() when handling R_X86_64_RELATIVE relocations.

Description

Use elf_relocaddr() when handling R_X86_64_RELATIVE relocations.

This is required for DPCPU and VNET data variable definitions to work when
KLDs are linked as DSOs. R_X86_64_RELATIVE relocations should not appear
in object files, so assert this in elf_relocaddr().

Reviewed by: kib
MFC after: 1 month
Sponsored by: Netflix
Differential Revision: https://reviews.freebsd.org/D21755

Details

Provenance
markjAuthored on Sep 23 2019, 2:14 PM
Parents
rG751727948a29: Set NX in mappings created by pmap_kenter() and pmap_kenter_attr().
Branches
Unknown
Tags
Unknown

Event Timeline