sections.h: define application-level sections
Signed-off-by: Andrew Boie <andrew.p.boie@intel.com>
This commit is contained in:
parent
1eaccb0bb7
commit
8eed4b0309
2 changed files with 6 additions and 2 deletions
|
@ -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 */
|
||||
|
|
|
@ -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"]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue