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, Z_LINK_ITERABLE_SUBALIGN) 7#endif 8 9#if defined(CONFIG_SETTINGS) 10 ITERABLE_SECTION_ROM(settings_handler_static, Z_LINK_ITERABLE_SUBALIGN) 11#endif 12 13#if defined(CONFIG_SENSING) 14 ITERABLE_SECTION_ROM(sensing_sensor_info, Z_LINK_ITERABLE_SUBALIGN) 15#endif 16 17#if defined(CONFIG_SENSOR_INFO) 18 ITERABLE_SECTION_ROM(sensor_info, Z_LINK_ITERABLE_SUBALIGN) 19#endif 20 21#if defined(CONFIG_SENSOR_ASYNC_API) 22 ITERABLE_SECTION_ROM(sensor_decoder_api, Z_LINK_ITERABLE_SUBALIGN) 23#endif 24 25#if defined(CONFIG_MCUMGR) 26 ITERABLE_SECTION_ROM(mcumgr_handler, Z_LINK_ITERABLE_SUBALIGN) 27#endif 28 29#if defined(CONFIG_INPUT) 30 ITERABLE_SECTION_ROM(input_callback, Z_LINK_ITERABLE_SUBALIGN) 31#endif 32 33#if defined(CONFIG_EMUL) 34 ITERABLE_SECTION_ROM(emul, Z_LINK_ITERABLE_SUBALIGN) 35#endif /* CONFIG_EMUL */ 36 37#if defined(CONFIG_ZBUS) 38 ITERABLE_SECTION_ROM(zbus_channel, Z_LINK_ITERABLE_SUBALIGN) 39 ITERABLE_SECTION_ROM(zbus_observer, Z_LINK_ITERABLE_SUBALIGN) 40 ITERABLE_SECTION_ROM(zbus_channel_observation, Z_LINK_ITERABLE_SUBALIGN) 41#endif /* CONFIG_ZBUS */ 42 43#ifdef CONFIG_LLEXT 44 ITERABLE_SECTION_ROM(llext_const_symbol, Z_LINK_ITERABLE_SUBALIGN) 45#endif /* CONFIG_LLEXT */ 46 47 SECTION_DATA_PROLOGUE(symbol_to_keep,,) 48 { 49 __symbol_to_keep_start = .; 50 KEEP(*(SORT(.symbol_to_keep*))); 51 __symbol_to_keep_end = .; 52 } GROUP_ROM_LINK_IN(RAMABLE_REGION, ROMABLE_REGION) 53 54 ITERABLE_SECTION_ROM(shell, Z_LINK_ITERABLE_SUBALIGN) 55 56 ITERABLE_SECTION_ROM(shell_root_cmds, Z_LINK_ITERABLE_SUBALIGN) 57 58 ITERABLE_SECTION_ROM(shell_subcmds, Z_LINK_ITERABLE_SUBALIGN) 59 60 ITERABLE_SECTION_ROM(shell_dynamic_subcmds, Z_LINK_ITERABLE_SUBALIGN) 61 62 ITERABLE_SECTION_ROM(cfb_font, Z_LINK_ITERABLE_SUBALIGN) 63 64#if defined(CONFIG_GNSS) 65 ITERABLE_SECTION_ROM(gnss_data_callback, Z_LINK_ITERABLE_SUBALIGN) 66#endif 67 68#if defined(CONFIG_GNSS_SATELLITES) 69 ITERABLE_SECTION_ROM(gnss_satellites_callback, Z_LINK_ITERABLE_SUBALIGN) 70#endif 71