Re: [PATCH bpf-next v2] docs/bpf: add llvm_reloc.rst to explain llvm bpf relocations

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



sorry, please ignore this one. The same patch has been sent out last night. I may have accidentally deleted it from my inbox and didn't see it and so sent out again.

On 5/25/21 8:25 AM, Yonghong Song wrote:
LLVM upstream commit https://reviews.llvm.org/D102712
made some changes to bpf relocations to make them
llvm linker lld friendly. The scope of
existing relocations R_BPF_64_{64,32} is narrowed
and new relocations R_BPF_64_{ABS32,ABS64,NODYLD32}
are introduced.

Let us add some documentation about llvm bpf
relocations so people can understand how to resolve
them properly in their respective tools.

Cc: John Fastabend <john.fastabend@xxxxxxxxx>
Cc: Lorenz Bauer <lmb@xxxxxxxxxxxxxx>
Signed-off-by: Yonghong Song <yhs@xxxxxx>
---
  Documentation/bpf/index.rst            |   1 +
  Documentation/bpf/llvm_reloc.rst       | 240 +++++++++++++++++++++++++
  tools/testing/selftests/bpf/README.rst |  19 ++
  3 files changed, 260 insertions(+)
  create mode 100644 Documentation/bpf/llvm_reloc.rst

Changelogs:
   v1 -> v2:
     - add an example to illustrate how relocations related to base
       section and symbol table and what is "Implicit Addend"
     - clarify why we use 32bit read/write for R_BPF_64_64 (ld_imm64)
       relocations.

[...]



[Index of Archives]     [Linux Samsung SoC]     [Linux Rockchip SoC]     [Linux Actions SoC]     [Linux for Synopsys ARC Processors]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]


  Powered by Linux