1/* SPDX-License-Identifier: Apache-2.0 */
2
3#include <zephyr/linker/iterable_sections.h>
4
5#if defined(CONFIG_EC_HOST_CMD)
6	ITERABLE_SECTION_ROM(ec_host_cmd_handler, 4)
7#endif
8
9#if defined(CONFIG_SETTINGS)
10	ITERABLE_SECTION_ROM(settings_handler_static, 4)
11#endif
12
13#if defined(CONFIG_SENSING)
14	ITERABLE_SECTION_ROM(sensing_sensor_info, 4)
15#endif
16
17#if defined(CONFIG_SENSOR_INFO)
18	ITERABLE_SECTION_ROM(sensor_info, 4)
19#endif
20
21#if defined(CONFIG_SENSOR_ASYNC_API)
22	ITERABLE_SECTION_ROM(sensor_decoder_api, 4)
23#endif
24
25#if defined(CONFIG_MCUMGR)
26	ITERABLE_SECTION_ROM(mcumgr_handler, 4)
27#endif
28
29#if defined(CONFIG_INPUT)
30	ITERABLE_SECTION_ROM(input_listener, 4)
31#endif
32
33#if defined(CONFIG_EMUL)
34	ITERABLE_SECTION_ROM(emul, 4)
35#endif /* CONFIG_EMUL */
36
37#if defined(CONFIG_ZBUS)
38	ITERABLE_SECTION_ROM(zbus_channel, 4)
39	ITERABLE_SECTION_ROM(zbus_channel_observation, 4)
40#endif /* CONFIG_ZBUS */
41
42#ifdef CONFIG_LLEXT
43	ITERABLE_SECTION_ROM(llext_const_symbol, 4)
44#endif /* CONFIG_LLEXT */
45
46	SECTION_DATA_PROLOGUE(symbol_to_keep,,)
47	{
48		__symbol_to_keep_start = .;
49		KEEP(*(SORT(.symbol_to_keep*)));
50		__symbol_to_keep_end = .;
51	} GROUP_ROM_LINK_IN(RAMABLE_REGION, ROMABLE_REGION)
52
53	ITERABLE_SECTION_ROM(shell, 4)
54
55	ITERABLE_SECTION_ROM(shell_root_cmds, 4)
56
57	ITERABLE_SECTION_ROM(shell_subcmds, 4)
58
59	ITERABLE_SECTION_ROM(shell_dynamic_subcmds, 4)
60
61	ITERABLE_SECTION_ROM(cfb_font, 4)
62