aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDimitry Andric <dim@FreeBSD.org>2021-03-05 20:06:05 +0000
committerDimitry Andric <dim@FreeBSD.org>2021-03-09 20:25:16 +0000
commit3f684107ef6e41b03a47d64d6e31cebc823d7448 (patch)
tree3cf2d3428db81f53af939db2ae8013eab12361cf
parent27e68baf24f1eb10f1cfb48731d7447a78b278ff (diff)
downloadsrc-3f684107ef6e41b03a47d64d6e31cebc823d7448.tar.gz
src-3f684107ef6e41b03a47d64d6e31cebc823d7448.zip
Add a few missed files to libclang_rt.profile-<arch>.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. Reported by: ota@j.email.ne.jp PR: 254001 (cherry picked from commit 772c631af81abdb6d498d972bab79d04d3db16d0)
-rw-r--r--lib/libclang_rt/profile/Makefile2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/libclang_rt/profile/Makefile b/lib/libclang_rt/profile/Makefile
index c41da991a039..ab3eba28ac96 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