From 64b30c36712edb44e9204e3a3436100024ffad18 Mon Sep 17 00:00:00 2001 From: Dimitry Andric Date: Fri, 5 Mar 2021 21:06:05 +0100 Subject: [PATCH] Add a few missed files to libclang_rt.profile-.a Otherwise, programs compiled with -fprofile-instr-generate will encounter undefined symbol errors during linking, for example __llvm_profile_counter_bias, lprofSetRuntimeCounterRelocation and a few others were missing from the profile library. Approved by: re (gjb) Reported by: ota@j.email.ne.jp PR: 254001 (cherry picked from commit 772c631af81abdb6d498d972bab79d04d3db16d0) (cherry picked from commit 3f684107ef6e41b03a47d64d6e31cebc823d7448) --- lib/libclang_rt/profile/Makefile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/libclang_rt/profile/Makefile b/lib/libclang_rt/profile/Makefile index c41da991a03..ab3eba28ac9 100644 --- a/lib/libclang_rt/profile/Makefile +++ b/lib/libclang_rt/profile/Makefile @@ -13,8 +13,10 @@ CXXFLAGS+= -fvisibility=default SRCS+= profile/GCDAProfiling.c SRCS+= profile/InstrProfiling.c +SRCS+= profile/InstrProfilingBiasVar.c SRCS+= profile/InstrProfilingBuffer.c SRCS+= profile/InstrProfilingFile.c +SRCS+= profile/InstrProfilingInternal.c SRCS+= profile/InstrProfilingMerge.c SRCS+= profile/InstrProfilingMergeFile.c SRCS+= profile/InstrProfilingNameVar.c -- 2.45.0