bpf: Added linker support for R_BPF_64_NODYLD32.
authorCupertino Miranda <cupertino.miranda@oracle.com>
Wed, 20 Dec 2023 12:24:03 +0000 (12:24 +0000)
committerCupertino Miranda <cupertino.miranda@oracle.com>
Mon, 8 Jan 2024 20:44:37 +0000 (20:44 +0000)
commitad4e57ab110aba9cd90a76539ed480e9d1f8cfa5
tree0556a97a3867d50e3f70626cf3b268eff793115d
parent30a9c613dfaf228d0bd1a5ff4db3a2b07374916a
bpf: Added linker support for R_BPF_64_NODYLD32.

This patch adds linker support to patch R_BPF_64_NODYLD32 relocations.
The implementation was based on comments and code in LLVM, as the GNU
toolchain does not uses this relocation type.
bfd/bpf-reloc.def
bfd/elf64-bpf.c