Skip to content

Commit 2c98a00

Browse files
gmarullgalak
authored andcommitted
linker: align CREATE_OBJ_LEVEL and zephyr_linker_section_obj_level
Use the same wildcard pattern for sorting. Note that the range wildcard, e.g. [0-9], can't be used as not all linkers support it. Signed-off-by: Gerard Marull-Paretas <[email protected]>
1 parent ea8930b commit 2c98a00

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

include/zephyr/linker/linker-defs.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -145,8 +145,8 @@
145145
*/
146146
#define CREATE_OBJ_LEVEL(object, level) \
147147
__##object##_##level##_start = .; \
148-
KEEP(*(SORT(.z_##object##_##level[0-9]_*))); \
149-
KEEP(*(SORT(.z_##object##_##level[1-9][0-9]_*)));
148+
KEEP(*(SORT(.z_##object##_##level?_))); \
149+
KEEP(*(SORT(.z_##object##_##level??_)));
150150

151151
/*
152152
* link in shell initialization objects for all modules that use shell and

0 commit comments

Comments
 (0)