Extend the powerpc relative relocation handling from r240782 to a
handful of other architectures. This is needed to properly read
dependency information from kernel modules.
MFC after: 1 week
Sponsored by: Ampere Computing, Inc.
Differential D26365
stand/reloc_elf: Handle relative relocations for arm{,64} and riscv scottph on Sep 9 2020, 2:25 AM. Authored by Tags None Referenced Files
Details Extend the powerpc relative relocation handling from r240782 to a MFC after: 1 week
Diff Detail
Event TimelineComment Actions Thanks ! Comment Actions When reloc returns EOPNOTSUPP, the load_elf code falls back to adding ef->off which gets set here for arm && !efi: https://svnweb.freebsd.org/base/head/stand/common/load_elf.c?revision=358744&view=markup#l530 So I'd guess that's why arm doesn't have the problem before this change, but I haven't checked it.
|