From 8eed4b0309af5302fe185c1f927523c89758c1c2 Mon Sep 17 00:00:00 2001 From: Andrew Boie Date: Wed, 14 Jun 2017 16:08:16 -0700 Subject: [PATCH] sections.h: define application-level sections Signed-off-by: Andrew Boie --- include/linker/sections.h | 4 ++++ scripts/sanitycheck | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/include/linker/sections.h b/include/linker/sections.h index 6452874e006..a093f13916d 100644 --- a/include/linker/sections.h +++ b/include/linker/sections.h @@ -23,6 +23,10 @@ #define _BSS_SECTION_NAME bss #define _NOINIT_SECTION_NAME noinit +#define _APP_DATA_SECTION_NAME app_datas +#define _APP_BSS_SECTION_NAME app_bss +#define _APP_NOINIT_SECTION_NAME app_noinit + #define _UNDEFINED_SECTION_NAME undefined /* Various text section names */ diff --git a/scripts/sanitycheck b/scripts/sanitycheck index 9c0095b6765..4277935153f 100755 --- a/scripts/sanitycheck +++ b/scripts/sanitycheck @@ -467,7 +467,7 @@ class QEMUHandler(Handler): class SizeCalculator: - alloc_sections = ["bss", "noinit"] + alloc_sections = ["bss", "noinit", "app_bss", "app_noinit"] rw_sections = ["datas", "initlevel", "_k_task_list", "_k_event_list", "_k_memory_pool", "exceptions", "initshell", "_static_thread_area", "_k_timer_area", @@ -476,7 +476,7 @@ class SizeCalculator: "_k_fifo_area", "_k_lifo_area", "_k_stack_area", "_k_msgq_area", "_k_mbox_area", "_k_pipe_area", "net_if", "net_if_event", "net_stack", "net_l2_data", - "_k_queue_area", "_net_buf_pool_area" ] + "_k_queue_area", "_net_buf_pool_area", "app_datas" ] # These get copied into RAM only on non-XIP ro_sections = ["text", "ctors", "init_array", "reset", "rodata", "devconfig", "net_l2", "vector"]