OSDN Git Service

[BPF] generate R_BPF_NONE relocation for BTF DataSec variables
authorYonghong Song <yhs@fb.com>
Sun, 26 May 2019 21:26:06 +0000 (21:26 +0000)
committerYonghong Song <yhs@fb.com>
Sun, 26 May 2019 21:26:06 +0000 (21:26 +0000)
commit66495492c0af53c4597cace26c50f0dce44033fc
tree29421adb05800bed9263784992d5576821a288b3
parentd224ecc383332beb1abb0eb051c6f4d8edaeb4cd
[BPF] generate R_BPF_NONE relocation for BTF DataSec variables

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

Signed-off-by: Yonghong Song <yhs@fb.com>
Differential Revision: https://reviews.llvm.org/D62460

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@361742 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/BPF/MCTargetDesc/BPFELFObjectWriter.cpp
test/CodeGen/BPF/reloc-btf-2.ll [new file with mode: 0644]