Commit 2c98a001 authored by Gerard Marull-Paretas's avatar Gerard Marull-Paretas Committed by Kumar Gala
Browse files

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: default avatarGerard Marull-Paretas <gerard.marull@nordicsemi.no>
parent ea8930bd
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -145,8 +145,8 @@
 */
#define CREATE_OBJ_LEVEL(object, level)				\
		__##object##_##level##_start = .;		\
		KEEP(*(SORT(.z_##object##_##level[0-9]_*)));		\
		KEEP(*(SORT(.z_##object##_##level[1-9][0-9]_*)));
		KEEP(*(SORT(.z_##object##_##level?_)));		\
		KEEP(*(SORT(.z_##object##_##level??_)));

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