diff --git a/include/linker/section_tags.h b/include/linker/section_tags.h index 39549c82428..f2d7593a65b 100644 --- a/include/linker/section_tags.h +++ b/include/linker/section_tags.h @@ -14,6 +14,7 @@ #if !defined(_ASMLANGUAGE) #define __noinit __in_section_unique(_NOINIT_SECTION_NAME) +#define __noinit_named(name) __in_section_unique_named(_NOINIT_SECTION_NAME, name) #define __irq_vector_table Z_GENERIC_SECTION(_IRQ_VECTOR_TABLE_SECTION_NAME) #define __sw_isr_table Z_GENERIC_SECTION(_SW_ISR_TABLE_SECTION_NAME) diff --git a/include/toolchain/gcc.h b/include/toolchain/gcc.h index c34e815151c..cc2fdc7dc9b 100644 --- a/include/toolchain/gcc.h +++ b/include/toolchain/gcc.h @@ -156,6 +156,9 @@ do { \ #define __in_section_unique(seg) ___in_section(seg, __FILE__, __COUNTER__) +#define __in_section_unique_named(seg, name) \ + ___in_section(seg, __FILE__, name) + /* When using XIP, using '__ramfunc' places a function into RAM instead * of FLASH. Make sure '__ramfunc' is defined only when * CONFIG_ARCH_HAS_RAMFUNC_SUPPORT is defined, so that the compiler can