Add a section on CO-RE relocations to llvm_relo.rst. Based on doc-strings from include/uapi/linux/bpf.h and tools/lib/bpf/relo_core.c Changelog: V1 -> V2: - Small fixes suggested by Yonghong and Andrii; - C example extended to include all 13 relocation kinds (Yonghong); - Description of which fields are patched for which instruction classes (Andrii); - Details for BPF_CORE_TYPE_MATCHES relocation kind; - Details for BPF_CORE_FIELD_{LR}SHIFT_U64 relocation kinds. [V1] https://lore.kernel.org/bpf/20230824230102.2117902-1-eddyz87@xxxxxxxxx/ Eduard Zingerman (1): docs/bpf: Add description for CO-RE relocations Documentation/bpf/btf.rst | 31 +++- Documentation/bpf/llvm_reloc.rst | 304 +++++++++++++++++++++++++++++++ 2 files changed, 329 insertions(+), 6 deletions(-) -- 2.41.0