[PATCH] D102712: BPF: Add more relocation kinds

Yonghong Song via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sun May 23 11:57:22 PDT 2021


yonghong-song updated this revision to Diff 347262.
yonghong-song edited the summary of this revision.
yonghong-song added a comment.

- enumerate all relocations in RuntimeDyld.c such that R_BPF_64_{ABS64,ABS32} relocations will be resolved and others will be ignored.
- added one more test case that R_BPF_64_ABS64 is properly resolved.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D102712/new/

https://reviews.llvm.org/D102712

Files:
  llvm/include/llvm/BinaryFormat/ELFRelocs/BPF.def
  llvm/lib/ExecutionEngine/RuntimeDyld/RuntimeDyldELF.cpp
  llvm/lib/Target/BPF/MCTargetDesc/BPFAsmBackend.cpp
  llvm/lib/Target/BPF/MCTargetDesc/BPFELFObjectWriter.cpp
  llvm/test/CodeGen/BPF/reloc-2.ll
  llvm/test/CodeGen/BPF/reloc-btf-2.ll
  llvm/test/CodeGen/BPF/reloc-btf.ll
  llvm/test/CodeGen/BPF/reloc.ll
  llvm/test/ExecutionEngine/RuntimeDyld/BPF/abs64-relocation.s
  llvm/test/ExecutionEngine/RuntimeDyld/BPF/lit.local.cfg
  llvm/test/ExecutionEngine/RuntimeDyld/BPF/nodyld32-64-relocations.s

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D102712.347262.patch
Type: text/x-patch
Size: 12506 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210523/d3bdb00c/attachment.bin>


More information about the llvm-commits mailing list