sections.h: define application-level sections

Signed-off-by: Andrew Boie <andrew.p.boie@intel.com>
This commit is contained in:
Andrew Boie 2017-06-14 16:08:16 -07:00 committed by Anas Nashif
commit 8eed4b0309
2 changed files with 6 additions and 2 deletions

View file

@ -23,6 +23,10 @@
#define _BSS_SECTION_NAME bss #define _BSS_SECTION_NAME bss
#define _NOINIT_SECTION_NAME noinit #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 #define _UNDEFINED_SECTION_NAME undefined
/* Various text section names */ /* Various text section names */

View file

@ -467,7 +467,7 @@ class QEMUHandler(Handler):
class SizeCalculator: class SizeCalculator:
alloc_sections = ["bss", "noinit"] alloc_sections = ["bss", "noinit", "app_bss", "app_noinit"]
rw_sections = ["datas", "initlevel", "_k_task_list", "_k_event_list", rw_sections = ["datas", "initlevel", "_k_task_list", "_k_event_list",
"_k_memory_pool", "exceptions", "initshell", "_k_memory_pool", "exceptions", "initshell",
"_static_thread_area", "_k_timer_area", "_static_thread_area", "_k_timer_area",
@ -476,7 +476,7 @@ class SizeCalculator:
"_k_fifo_area", "_k_lifo_area", "_k_stack_area", "_k_fifo_area", "_k_lifo_area", "_k_stack_area",
"_k_msgq_area", "_k_mbox_area", "_k_pipe_area", "_k_msgq_area", "_k_mbox_area", "_k_pipe_area",
"net_if", "net_if_event", "net_stack", "net_l2_data", "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 # These get copied into RAM only on non-XIP
ro_sections = ["text", "ctors", "init_array", "reset", ro_sections = ["text", "ctors", "init_array", "reset",
"rodata", "devconfig", "net_l2", "vector"] "rodata", "devconfig", "net_l2", "vector"]