1/* SPDX-License-Identifier: Apache-2.0 */ 2 3#include <zephyr/linker/iterable_sections.h> 4 5#if defined(CONFIG_LOG_FMT_SECTION_STRIP) && defined(DEVNULL_REGION) 6 SECTION_PROLOGUE(log_strings,(COPY),SUBALIGN(Z_LINK_ITERABLE_SUBALIGN)) 7 { 8 Z_LINK_ITERABLE(log_strings); 9 } GROUP_ROM_LINK_IN(DEVNULL_REGION, DEVNULL_REGION) 10 11 SECTION_PROLOGUE(log_stmesp_ptr,(COPY),SUBALIGN(Z_LINK_ITERABLE_SUBALIGN)) 12 { 13 Z_LINK_ITERABLE(log_stmesp_ptr); 14 } GROUP_ROM_LINK_IN(DEVNULL_REGION, DEVNULL_REGION) 15 16 SECTION_PROLOGUE(log_stmesp_str,(COPY),SUBALIGN(Z_LINK_ITERABLE_SUBALIGN)) 17 { 18 Z_LINK_ITERABLE(log_stmesp_str); 19 } GROUP_ROM_LINK_IN(DEVNULL_REGION, DEVNULL_REGION) 20#else 21 ITERABLE_SECTION_ROM(log_strings, Z_LINK_ITERABLE_SUBALIGN) 22 23 ITERABLE_SECTION_ROM(log_stmesp_ptr, Z_LINK_ITERABLE_SUBALIGN) 24 25 ITERABLE_SECTION_ROM(log_stmesp_str, Z_LINK_ITERABLE_SUBALIGN) 26#endif 27 28 ITERABLE_SECTION_ROM(log_const, Z_LINK_ITERABLE_SUBALIGN) 29 30 ITERABLE_SECTION_ROM(log_backend, Z_LINK_ITERABLE_SUBALIGN) 31 32 ITERABLE_SECTION_ROM(log_link, Z_LINK_ITERABLE_SUBALIGN) 33