testsuite: coverage: Port GCOV linker code to Cmake.
From linker.ld and common-rom.ld Signed-off-by: Øyvind Rønningstad <oyvind.ronningstad@nordicsemi.no>
This commit is contained in:
parent
c760ca02eb
commit
fb0faaa123
5 changed files with 50 additions and 39 deletions
|
@ -120,14 +120,3 @@
|
|||
KEEP(*(SORT_BY_NAME(".font_entry.*")))
|
||||
__font_entry_end = .;
|
||||
} GROUP_LINK_IN(ROMABLE_REGION)
|
||||
|
||||
#ifdef CONFIG_COVERAGE_GCOV
|
||||
/* Section needed by gcov when coverage is turned on.*/
|
||||
SECTION_PROLOGUE (gcov,,)
|
||||
{
|
||||
PROVIDE_HIDDEN (__init_array_start = .);
|
||||
KEEP (*(SORT(.init_array.*)))
|
||||
KEEP (*(.init_array*))
|
||||
PROVIDE_HIDDEN (__init_array_end = .);
|
||||
} GROUP_LINK_IN(ROMABLE_REGION)
|
||||
#endif /* CONFIG_COVERAGE_GCOV */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue