2019-03-20 20:20:11 +08:00
|
|
|
/*
|
|
|
|
* Copyright (c) 2019 Intel Corporation
|
|
|
|
*
|
|
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
|
|
*/
|
|
|
|
|
|
|
|
/* Copied from linker.ld */
|
|
|
|
|
2019-05-30 22:28:09 +08:00
|
|
|
#ifdef CONFIG_ARM
|
2019-03-20 20:20:11 +08:00
|
|
|
SECTION_DATA_PROLOGUE(_GCOV_BSS_SECTION_NAME,(NOLOAD),)
|
|
|
|
{
|
|
|
|
#ifdef CONFIG_USERSPACE
|
|
|
|
MPU_ALIGN(__gcov_bss_end - __gcov_bss_start );
|
|
|
|
#else /* CONFIG_MPU_REQUIRES_POWER_OF_TWO_ALIGNMENT && CONFIG_USERSPACE */
|
|
|
|
. = ALIGN(_region_min_align);
|
|
|
|
#endif /* CONFIG_USERSPACE */
|
|
|
|
|
|
|
|
__gcov_bss_start = .;
|
|
|
|
KEEP(*(".bss.__gcov0.*"));
|
|
|
|
|
|
|
|
#ifdef CONFIG_USERSPACE
|
|
|
|
MPU_ALIGN(__gcov_bss_end - __gcov_bss_start );
|
|
|
|
#else /* CONFIG_USERSPACE */
|
|
|
|
. = ALIGN(_region_min_align);
|
|
|
|
#endif /* CONFIG_USERSPACE */
|
|
|
|
|
|
|
|
__gcov_bss_end = .;
|
|
|
|
} GROUP_LINK_IN(RAMABLE_REGION)
|
|
|
|
|
|
|
|
__gcov_bss_num_words = ((__gcov_bss_end - __gcov_bss_start) >> 2);
|
2019-05-30 22:28:09 +08:00
|
|
|
__gcov_bss_size = __gcov_bss_end - __gcov_bss_start;
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef CONFIG_X86
|
|
|
|
SECTION_PROLOGUE(_GCOV_BSS_SECTION_NAME, (NOLOAD),)
|
|
|
|
{
|
|
|
|
MMU_PAGE_ALIGN
|
|
|
|
__gcov_bss_start = .;
|
|
|
|
*(".bss.__gcov0.*");
|
|
|
|
. = ALIGN(4);
|
|
|
|
MMU_PAGE_ALIGN
|
|
|
|
__gcov_bss_end = .;
|
|
|
|
}GROUP_DATA_LINK_IN(RAMABLE_REGION, RAMABLE_REGION)
|
|
|
|
|
|
|
|
__gcov_bss_num_words = ((__gcov_bss_end - __gcov_bss_start) >> 2);
|
|
|
|
__gcov_bss_size = __gcov_bss_end - __gcov_bss_start;
|
|
|
|
#endif
|