Skip to content

Commit

Permalink
gcov fix
Browse files Browse the repository at this point in the history
If --enable-gcov is passed to the configure script, PANDA displays this message
and aborts when llvm is first enabled:

JIT session error: Symbols not found: [ llvm_gcov_init ]

This patch fixes that issue.
  • Loading branch information
MarkMankins authored and Andrew Fasano committed Jul 11, 2024
1 parent e2be706 commit a778ee0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion panda/Makefile.panda.target
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ llvm-$(TARGET_MIPS64) += $(addprefix target/mips/,$(MIPS64_HELPERS))
# only support mips64, not mipsel64
llvmmorph-$(TARGET_MIPS64) += llvm-helpers-mips64.bc

CLANG_FILTER = -Wold-style-declaration -fstack-protector-strong -Wno-error=cpp -g -O0 -O1 -O2 -O3 -mcx16 -Wno-shift-negative-value
CLANG_FILTER = -Wold-style-declaration -fstack-protector-strong -Wno-error=cpp -g -O0 -O1 -O2 -O3 -mcx16 -Wno-shift-negative-value -fprofile-arcs -ftest-coverage
QEMU_BC2FLAGS:=$(filter-out $(CLANG_FILTER),$(QEMU_CFLAGS) $(CFLAGS)) -O1 -I../target/$(TARGET_BASE_ARCH)
%.bc2: %.c $(GENERATED_FILES)
$(call quiet-command,\
Expand Down

0 comments on commit a778ee0

Please sign in to comment.