BPF relocations review / refactoring
authorCupertino Miranda <cupertino.miranda@oracle.com>
Thu, 16 Mar 2023 08:39:52 +0000 (08:39 +0000)
committerCupertino Miranda <cupertino.miranda@oracle.com>
Thu, 16 Mar 2023 09:11:09 +0000 (09:11 +0000)
commit5e4c7a839d1c0d68a4a518cf2dc8e87925575e58
treee063d731af82e3e76b3ed441fc0d46b505bbc213
parent6752dd75f76457902729a5f03d09fa28ec5d68c3
BPF relocations review / refactoring

- Removed not needed relocations.
- Renamed relocations to match llvm and linux kernel.

Relocation changes:
  R_BPF_INSN_64  => R_BPF_64_64
  R_BPF_INSN_DISP32  => R_BPF_64_32
  R_BPF_DATA_32  => R_BPF_64_ABS32
  R_BPF_DATA_64  => R_BPF_64_ABS64

ChangeLog:

  * bfd/bpf-reloc.def: Created file with BPF_HOWTO macro entries.
  * bfd/reloc.c: Removed non needed relocations.
  * bfd/bfd-in2.h: regenerated.
  * bfd/libbfd.h: regenerated.
  * bfd/elf64-bpf.c: Changed relocations.
  * include/elf/bpf.h: Adapted relocation values/names.
  * gas/config/tc-bpf.c: Changed relocation mapping.
bfd/bfd-in2.h
bfd/bpf-reloc.def [new file with mode: 0644]
bfd/elf64-bpf.c
bfd/libbfd.h
bfd/reloc.c
gas/config/tc-bpf.c
include/elf/bpf.h