linker generated list: provide an iterator to simplify list access
Given that the section name and boundary simbols can be inferred from the struct object name, it makes sense to create an iterator that abstracts away the access details and reduce the possibility for mistakes. Signed-off-by: Nicolas Pitre <npitre@baylibre.com>
This commit is contained in:
parent
b1d3742ce2
commit
aa9228854f
14 changed files with 34 additions and 80 deletions
|
@ -33,9 +33,9 @@
|
|||
|
||||
SECTION_DATA_PROLOGUE(_static_thread_area,,SUBALIGN(4))
|
||||
{
|
||||
_static_thread_data_list_start = .;
|
||||
__static_thread_data_list_start = .;
|
||||
KEEP(*(SORT_BY_NAME(".__static_thread_data.static.*")))
|
||||
_static_thread_data_list_end = .;
|
||||
__static_thread_data_list_end = .;
|
||||
} GROUP_DATA_LINK_IN(RAMABLE_REGION, ROMABLE_REGION)
|
||||
|
||||
#ifdef CONFIG_USERSPACE
|
||||
|
|
|
@ -38,9 +38,9 @@
|
|||
*/
|
||||
SECTION_PROLOGUE(object_access,,)
|
||||
{
|
||||
__object_access_start = .;
|
||||
__k_object_assignment_list_start = .;
|
||||
KEEP(*(".__k_object_assignment.*"))
|
||||
__object_access_end = .;
|
||||
__k_object_assignment_list_end = .;
|
||||
} GROUP_LINK_IN(ROMABLE_REGION)
|
||||
#endif
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue