From ad4e57ab110aba9cd90a76539ed480e9d1f8cfa5 Mon Sep 17 00:00:00 2001 From: Cupertino Miranda Date: Wed, 20 Dec 2023 12:24:03 +0000 Subject: 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/elf64-bpf.c | 1 + 1 file changed, 1 insertion(+) (limited to 'bfd/elf64-bpf.c') diff --git a/bfd/elf64-bpf.c b/bfd/elf64-bpf.c index c932a40..0bffe2c 100644 --- a/bfd/elf64-bpf.c +++ b/bfd/elf64-bpf.c @@ -276,6 +276,7 @@ bpf_elf_relocate_section (bfd *output_bfd ATTRIBUTE_UNUSED, } case R_BPF_64_ABS64: case R_BPF_64_ABS32: + case R_BPF_64_NODYLD32: { addend = bfd_get (howto->bitsize, input_bfd, where); relocation += addend; -- cgit v1.1