[PATCH] D71290: [BPF] put not-section-attribute externs into BTF ".extern" data section

Yonghong Song via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Dec 10 11:14:40 PST 2019


yonghong-song created this revision.
yonghong-song added reviewers: ast, anakryiko.
Herald added subscribers: llvm-commits, hiraditya.
Herald added a project: LLVM.

Currently for extern variables with section attribute, those
BTF_KIND_VARs will not be placed in any DataSec. This is
inconvenient as any other generated BTF_KIND_VAR belongs to
one DataSec. This patch put these extern variables into
".extern" section so bpf loader can have a consistent
processing mechanism for all data sections and variables.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D71290

Files:
  llvm/lib/Target/BPF/BTFDebug.cpp
  llvm/test/CodeGen/BPF/BTF/extern-var-func-weak.ll
  llvm/test/CodeGen/BPF/BTF/extern-var-func.ll
  llvm/test/CodeGen/BPF/BTF/extern-var-struct-weak.ll
  llvm/test/CodeGen/BPF/BTF/extern-var-struct.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D71290.233154.patch
Type: text/x-patch
Size: 9188 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20191210/63fcba53/attachment.bin>


More information about the llvm-commits mailing list