[PATCH] D62460: [BPF] generate R_BPF_NONE relocation for BTF DataSec variables

Yonghong Song via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sat May 25 22:46:41 PDT 2019


yonghong-song created this revision.
yonghong-song added a reviewer: ast.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

The variables in BTF DataSec type encode in-section offset.
R_BPF_NONE should be generated instead of R_BPF_64_32.


Repository:
  rL LLVM

https://reviews.llvm.org/D62460

Files:
  lib/Target/BPF/MCTargetDesc/BPFELFObjectWriter.cpp
  test/CodeGen/BPF/reloc-btf-2.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D62460.201435.patch
Type: text/x-patch
Size: 5496 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190526/b1803987/attachment.bin>


More information about the llvm-commits mailing list