[all-commits] [llvm/llvm-project] 7d0e89: [BPF] put not-section-attribute externs into BTF "...

yonghong-song via All-commits all-commits at lists.llvm.org
Tue Dec 10 11:46:35 PST 2019


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 7d0e8930ed08b5f938a317f13d8fc994dd8c551c
      https://github.com/llvm/llvm-project/commit/7d0e8930ed08b5f938a317f13d8fc994dd8c551c
  Author: Yonghong Song <yhs at fb.com>
  Date:   2019-12-10 (Tue, 10 Dec 2019)

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

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

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.




More information about the All-commits mailing list