Skip to content

Commit 18ba153

Browse files
author
Andrew Boie
committed
build: remove obsolete sections from linker scripts
These were causing some issues in the old kernel, but the unified kernel no longer uses these. Issue: ZEP-513 Change-Id: I87216565231cd244886fbffe4b4d420d1687b245 Signed-off-by: Andrew Boie <[email protected]>
1 parent 033b5e9 commit 18ba153

File tree

2 files changed

+1
-30
lines changed

2 files changed

+1
-30
lines changed

include/linker/common-ram.ld

Lines changed: 0 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -118,34 +118,6 @@
118118
_k_task_list_end = .;
119119
} GROUP_DATA_LINK_IN(RAMABLE_REGION, ROMABLE_REGION)
120120

121-
SECTION_DATA_PROLOGUE(_k_task_ptr, (OPTIONAL),)
122-
{
123-
_k_task_ptr_start = .;
124-
*(._k_task_ptr.public.*)
125-
*(._k_task_ptr.private.*)
126-
*(._k_task_ptr.idle.*)
127-
KEEP(*(SORT_BY_NAME("._k_task_ptr*")))
128-
_k_task_ptr_end = .;
129-
} GROUP_DATA_LINK_IN(RAMABLE_REGION, ROMABLE_REGION)
130-
131-
SECTION_DATA_PROLOGUE(_k_pipe_ptr, (OPTIONAL),)
132-
{
133-
_k_pipe_ptr_start = .;
134-
*(._k_pipe_ptr.public.*)
135-
*(._k_pipe_ptr.private.*)
136-
KEEP(*(SORT_BY_NAME("._k_pipe_ptr*")))
137-
_k_pipe_ptr_end = .;
138-
} GROUP_DATA_LINK_IN(RAMABLE_REGION, ROMABLE_REGION)
139-
140-
SECTION_DATA_PROLOGUE(_k_mem_map_ptr, (OPTIONAL),)
141-
{
142-
_k_mem_map_ptr_start = .;
143-
*(._k_mem_map_ptr.public.*)
144-
*(._k_mem_map_ptr.private.*)
145-
KEEP(*(SORT_BY_NAME("._k_mem_map_ptr*")))
146-
_k_mem_map_ptr_end = .;
147-
} GROUP_DATA_LINK_IN(RAMABLE_REGION, ROMABLE_REGION)
148-
149121
SECTION_DATA_PROLOGUE(_k_event_list, (OPTIONAL),)
150122
{
151123
_k_event_list_start = .;

scripts/sanitycheck

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -464,8 +464,7 @@ class QEMUHandler(Handler):
464464
class SizeCalculator:
465465

466466
alloc_sections = ["bss", "noinit"]
467-
rw_sections = ["datas", "initlevel", "_k_mem_map_ptr", "_k_pipe_ptr",
468-
"_k_task_ptr", "_k_task_list", "_k_event_list",
467+
rw_sections = ["datas", "initlevel", "_k_task_list", "_k_event_list",
469468
"_k_memory_pool", "exceptions", "initshell",
470469
"_static_thread_area", "_k_timer_area",
471470
"_k_mem_slab_area", "_k_mem_pool_area",

0 commit comments

Comments
 (0)