From f71f39a26c812185d56f3f48263e0aeddb32c4ea Mon Sep 17 00:00:00 2001 From: Grygorii Strashko Date: Fri, 14 Jun 2024 17:09:18 +0300 Subject: [PATCH] testsuite: coverage: fix arm64 build with gcov enabled On ARM64 the build will fail with coverage and GCOV enabled: CONFIG_COVERAGE=y CONFIG_COVERAGE_GCOV=y CONFIG_FORCE_COVERAGE=y west build -b rcar_spider_ca55 -p always zephyr-dom0-xt \ -S xen_dom0 -- -DCONFIG_COVERAGE=y -DCONFIG_FORCE_COVERAGE=y Failure: "linker_zephyr_pre0.cmd:181: undefined symbol `__gcov_bss_end' referenced in expression" Fix build of ARM64 platforms with coverage and GCOV enabled. Signed-off-by: Grygorii Strashko Acked-by: Volodymyr Babchuk Acked-by: Dmytro Firsov --- subsys/testsuite/coverage/coverage_ram.ld | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/subsys/testsuite/coverage/coverage_ram.ld b/subsys/testsuite/coverage/coverage_ram.ld index df348cb8abafcb..5c44f1585add84 100644 --- a/subsys/testsuite/coverage/coverage_ram.ld +++ b/subsys/testsuite/coverage/coverage_ram.ld @@ -6,7 +6,7 @@ /* Copied from linker.ld */ -#ifdef CONFIG_ARM +#if defined(CONFIG_ARM) || defined(CONFIG_ARM64) SECTION_DATA_PROLOGUE(_GCOV_BSS_SECTION_NAME,(NOLOAD),) { #ifdef CONFIG_USERSPACE