Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 5 Nov 2021 16:10:39 GMT
From:      Dimitry Andric <dim@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org
Subject:   git: 344691934f0c - stable/13 - llvm BPF target: add missed source files
Message-ID:  <202111051610.1A5GAdfP037131@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch stable/13 has been updated by dim:

URL: https://cgit.FreeBSD.org/src/commit/?id=344691934f0c594b9cdf788e0a1390f3ca9dd2ea

commit 344691934f0c594b9cdf788e0a1390f3ca9dd2ea
Author:     Dimitry Andric <dim@FreeBSD.org>
AuthorDate: 2021-11-02 16:49:34 +0000
Commit:     Dimitry Andric <dim@FreeBSD.org>
CommitDate: 2021-11-05 16:10:14 +0000

    llvm BPF target: add missed source files
    
    Otherwise, linking llvm binaries with this target enabled (which is not
    the default) will fail with a number of undefined symbol errors:
    
      ld: error: undefined symbol: llvm::initializeBPFAdjustOptPass(llvm::PassRegistry&)
      ld: error: undefined symbol: llvm::initializeBPFCheckAndAdjustIRPass(llvm::PassRegistry&)
      ld: error: undefined symbol: llvm::createBPFCheckAndAdjustIR()
      ld: error: undefined symbol: llvm::createBPFAdjustOpt()
      ld: error: undefined symbol: llvm::BPFAdjustOptPass::run(llvm::Module&, llvm::AnalysisManager<llvm::Module>&)
    
    Reported by:    Michael Dexter <editor@callfortesting.org>
    
    (cherry picked from commit d30dc78f798adebda488d2b8e21290268d2fb501)
---
 lib/clang/libllvm/Makefile | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/lib/clang/libllvm/Makefile b/lib/clang/libllvm/Makefile
index 09d6336c01d9..caca02399c42 100644
--- a/lib/clang/libllvm/Makefile
+++ b/lib/clang/libllvm/Makefile
@@ -1157,7 +1157,9 @@ SRCS_MIN+=	Target/ARM/Utils/ARMBaseInfo.cpp
 .if ${MK_LLVM_TARGET_BPF} != "no"
 SRCS_MIN+=	Target/BPF/AsmParser/BPFAsmParser.cpp
 SRCS_MIN+=	Target/BPF/BPFAbstractMemberAccess.cpp
+SRCS_MIN+=	Target/BPF/BPFAdjustOpt.cpp
 SRCS_MIN+=	Target/BPF/BPFAsmPrinter.cpp
+SRCS_MIN+=	Target/BPF/BPFCheckAndAdjustIR.cpp
 SRCS_MIN+=	Target/BPF/BPFFrameLowering.cpp
 SRCS_MIN+=	Target/BPF/BPFISelDAGToDAG.cpp
 SRCS_MIN+=	Target/BPF/BPFISelLowering.cpp



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202111051610.1A5GAdfP037131>