From c8066c55fca07debd396f603b7d47a2c2e8b6e20 Mon Sep 17 00:00:00 2001 From: Daniel Leung Date: Sat, 9 Mar 2019 00:35:40 -0800 Subject: [PATCH] linker: remove references to _k_task_list/_k_event_list Commit 45a7e5d076868209ba3657bce4c8c8e93ca1b954 removed scripts/sysgen and _k_task_list/_k_event_list sections are no longer being used. So remove them. Signed-off-by: Daniel Leung --- arch/nios2/Kconfig | 2 +- include/linker/common-ram.ld | 19 ------------------- scripts/sanitycheck | 3 +-- 3 files changed, 2 insertions(+), 22 deletions(-) diff --git a/arch/nios2/Kconfig b/arch/nios2/Kconfig index f2fa19c4ff8..cb44f4c8bac 100644 --- a/arch/nios2/Kconfig +++ b/arch/nios2/Kconfig @@ -89,7 +89,7 @@ config GP_GLOBAL help Use global pointer relative offsets for small globals declared anywhere in the executable. Note that if any small globals that are put - in alternate sections (such as _k_task_list_ptr) they must be declared + in alternate sections they must be declared in headers with proper __attribute__((section)) or the linker will error out. diff --git a/include/linker/common-ram.ld b/include/linker/common-ram.ld index 0e789952389..9a0e1d68eb4 100644 --- a/include/linker/common-ram.ld +++ b/include/linker/common-ram.ld @@ -117,25 +117,6 @@ _k_pipe_list_end = .; } GROUP_DATA_LINK_IN(RAMABLE_REGION, ROMABLE_REGION) - SECTION_DATA_PROLOGUE(_k_task_list, (OPTIONAL), SUBALIGN(4)) - { - _k_task_list_start = .; - *(._k_task_list.public.*) - *(._k_task_list.private.*) - _k_task_list_idle_start = .; - *(._k_task_list.idle.*) - KEEP(*(SORT_BY_NAME("._k_task_list*"))) - _k_task_list_end = .; - } GROUP_DATA_LINK_IN(RAMABLE_REGION, ROMABLE_REGION) - - SECTION_DATA_PROLOGUE(_k_event_list, (OPTIONAL), SUBALIGN(4)) - { - _k_event_list_start = .; - *(._k_event_list.event.*) - KEEP(*(SORT_BY_NAME("._k_event_list*"))) - _k_event_list_end = .; - } GROUP_DATA_LINK_IN(RAMABLE_REGION, ROMABLE_REGION) - SECTION_DATA_PROLOGUE(_net_buf_pool_area, (OPTIONAL), SUBALIGN(4)) { _net_buf_pool_list = .; diff --git a/scripts/sanitycheck b/scripts/sanitycheck index 23250ee7aec..fb420247d8d 100755 --- a/scripts/sanitycheck +++ b/scripts/sanitycheck @@ -855,8 +855,7 @@ class SizeCalculator: alloc_sections = ["bss", "noinit", "app_bss", "app_noinit", "ccm_bss", "ccm_noinit"] - rw_sections = ["datas", "initlevel", "_k_task_list", "_k_event_list", - "exceptions", "initshell", + rw_sections = ["datas", "initlevel", "exceptions", "initshell", "_static_thread_area", "_k_timer_area", "_k_mem_slab_area", "_k_mem_pool_area", "sw_isr_table", "_k_sem_area", "_k_mutex_area", "app_shmem_regions",