From 08bd1200635d2c2a86404581d84eadd1817b1ddd Mon Sep 17 00:00:00 2001 From: Keith Packard Date: Thu, 5 Jun 2025 14:43:20 -0700 Subject: [PATCH] linker: Do not emit SUBALIGN for iterable sections SUBALIGN forces alignment of input sections to the specified value, even if they require stricter alignment. Signed-off-by: Keith Packard --- include/zephyr/linker/iterable_sections.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/include/zephyr/linker/iterable_sections.h b/include/zephyr/linker/iterable_sections.h index 4411f67b354..1aa3003d4a9 100644 --- a/include/zephyr/linker/iterable_sections.h +++ b/include/zephyr/linker/iterable_sections.h @@ -55,7 +55,7 @@ * are indirectly referenced by iterating through the section. */ #define ITERABLE_SECTION_ROM(struct_type, subalign) \ - SECTION_PROLOGUE(struct_type##_area,,SUBALIGN(subalign)) \ + SECTION_PROLOGUE(struct_type##_area, ,) \ { \ Z_LINK_ITERABLE(struct_type); \ } GROUP_ROM_LINK_IN(RAMABLE_REGION, ROMABLE_REGION) @@ -70,7 +70,7 @@ * @see ITERABLE_SECTION_ROM() */ #define ITERABLE_SECTION_ROM_NUMERIC(struct_type, subalign) \ - SECTION_PROLOGUE(struct_type##_area, EMPTY, SUBALIGN(subalign)) \ + SECTION_PROLOGUE(struct_type##_area, EMPTY,) \ { \ Z_LINK_ITERABLE_NUMERIC(struct_type); \ } GROUP_ROM_LINK_IN(RAMABLE_REGION, ROMABLE_REGION) @@ -88,7 +88,7 @@ * Note that the symbols within the section can be garbage collected. */ #define ITERABLE_SECTION_ROM_GC_ALLOWED(struct_type, subalign) \ - SECTION_PROLOGUE(struct_type##_area,,SUBALIGN(subalign)) \ + SECTION_PROLOGUE(struct_type##_area, ,) \ { \ Z_LINK_ITERABLE_GC_ALLOWED(struct_type); \ } GROUP_LINK_IN(ROMABLE_REGION) @@ -108,7 +108,7 @@ * are indirectly referenced by iterating through the section. */ #define ITERABLE_SECTION_RAM(struct_type, subalign) \ - SECTION_DATA_PROLOGUE(struct_type##_area,,SUBALIGN(subalign)) \ + SECTION_DATA_PROLOGUE(struct_type##_area, ,) \ { \ Z_LINK_ITERABLE(struct_type); \ } GROUP_DATA_LINK_IN(RAMABLE_REGION, ROMABLE_REGION) @@ -123,7 +123,7 @@ * @see ITERABLE_SECTION_RAM() */ #define ITERABLE_SECTION_RAM_NUMERIC(struct_type, subalign) \ - SECTION_PROLOGUE(struct_type##_area, EMPTY, SUBALIGN(subalign)) \ + SECTION_PROLOGUE(struct_type##_area, EMPTY,) \ { \ Z_LINK_ITERABLE_NUMERIC(struct_type); \ } GROUP_DATA_LINK_IN(RAMABLE_REGION, ROMABLE_REGION) @@ -141,7 +141,7 @@ * Note that the symbols within the section can be garbage collected. */ #define ITERABLE_SECTION_RAM_GC_ALLOWED(struct_type, subalign) \ - SECTION_DATA_PROLOGUE(struct_type##_area,,SUBALIGN(subalign)) \ + SECTION_DATA_PROLOGUE(struct_type##_area, ,) \ { \ Z_LINK_ITERABLE_GC_ALLOWED(struct_type); \ } GROUP_DATA_LINK_IN(RAMABLE_REGION, ROMABLE_REGION)