diff --git a/include/linker/linker-defs.h b/include/linker/linker-defs.h index e0b23f62b31..3ae8f27c5df 100644 --- a/include/linker/linker-defs.h +++ b/include/linker/linker-defs.h @@ -42,6 +42,10 @@ KEEP(*(SORT_BY_NAME(._##struct_type.static.*))); \ _CONCAT(_##struct_type, _list_end) = . +#define Z_LINK_ITERABLE_ALIGNED(struct_type, align) \ + . = ALIGN(align); \ + Z_LINK_ITERABLE(struct_type); + #define Z_LINK_ITERABLE_GC_ALLOWED(struct_type) \ _CONCAT(_##struct_type, _list_start) = .; \ *(SORT_BY_NAME(._##struct_type.static.*)); \