Skip to content

Commit

Permalink
testsuite: coverage: fix arm64 build with gcov enabled
Browse files Browse the repository at this point in the history
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 <[email protected]>
Acked-by: Volodymyr Babchuk <[email protected]>
Acked-by: Dmytro Firsov <[email protected]>
  • Loading branch information
Grygorii Strashko committed Jun 18, 2024
1 parent cb85dfa commit f71f39a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion subsys/testsuite/coverage/coverage_ram.ld
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit f71f39a

Please sign in to comment.