aboutsummaryrefslogtreecommitdiff
path: root/bfd/elf64-bpf.c
diff options
context:
space:
mode:
authorCupertino Miranda <cupertino.miranda@oracle.com>2023-12-20 12:24:03 +0000
committerCupertino Miranda <cupertino.miranda@oracle.com>2024-01-08 20:44:37 +0000
commitad4e57ab110aba9cd90a76539ed480e9d1f8cfa5 (patch)
tree0556a97a3867d50e3f70626cf3b268eff793115d /bfd/elf64-bpf.c
parent30a9c613dfaf228d0bd1a5ff4db3a2b07374916a (diff)
downloadfsf-binutils-gdb-ad4e57ab110aba9cd90a76539ed480e9d1f8cfa5.zip
fsf-binutils-gdb-ad4e57ab110aba9cd90a76539ed480e9d1f8cfa5.tar.gz
fsf-binutils-gdb-ad4e57ab110aba9cd90a76539ed480e9d1f8cfa5.tar.bz2
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.
Diffstat (limited to 'bfd/elf64-bpf.c')
-rw-r--r--bfd/elf64-bpf.c1
1 files changed, 1 insertions, 0 deletions
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;