Skip to content

Commit df4b9c8

Browse files
keith-packardnashif
authored andcommitted
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 <keithp@keithp.com>
1 parent d96ecae commit df4b9c8

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

include/zephyr/linker/iterable_sections.h

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@
5555
* are indirectly referenced by iterating through the section.
5656
*/
5757
#define ITERABLE_SECTION_ROM(struct_type, subalign) \
58-
SECTION_PROLOGUE(struct_type##_area,,SUBALIGN(subalign)) \
58+
SECTION_PROLOGUE(struct_type##_area,,) \
5959
{ \
6060
Z_LINK_ITERABLE(struct_type); \
6161
} GROUP_ROM_LINK_IN(RAMABLE_REGION, ROMABLE_REGION)
@@ -70,7 +70,7 @@
7070
* @see ITERABLE_SECTION_ROM()
7171
*/
7272
#define ITERABLE_SECTION_ROM_NUMERIC(struct_type, subalign) \
73-
SECTION_PROLOGUE(struct_type##_area, EMPTY, SUBALIGN(subalign)) \
73+
SECTION_PROLOGUE(struct_type##_area, EMPTY,) \
7474
{ \
7575
Z_LINK_ITERABLE_NUMERIC(struct_type); \
7676
} GROUP_ROM_LINK_IN(RAMABLE_REGION, ROMABLE_REGION)
@@ -88,7 +88,7 @@
8888
* Note that the symbols within the section can be garbage collected.
8989
*/
9090
#define ITERABLE_SECTION_ROM_GC_ALLOWED(struct_type, subalign) \
91-
SECTION_PROLOGUE(struct_type##_area,,SUBALIGN(subalign)) \
91+
SECTION_PROLOGUE(struct_type##_area,,) \
9292
{ \
9393
Z_LINK_ITERABLE_GC_ALLOWED(struct_type); \
9494
} GROUP_LINK_IN(ROMABLE_REGION)
@@ -108,7 +108,7 @@
108108
* are indirectly referenced by iterating through the section.
109109
*/
110110
#define ITERABLE_SECTION_RAM(struct_type, subalign) \
111-
SECTION_DATA_PROLOGUE(struct_type##_area,,SUBALIGN(subalign)) \
111+
SECTION_DATA_PROLOGUE(struct_type##_area,,) \
112112
{ \
113113
Z_LINK_ITERABLE(struct_type); \
114114
} GROUP_DATA_LINK_IN(RAMABLE_REGION, ROMABLE_REGION)
@@ -123,7 +123,7 @@
123123
* @see ITERABLE_SECTION_RAM()
124124
*/
125125
#define ITERABLE_SECTION_RAM_NUMERIC(struct_type, subalign) \
126-
SECTION_PROLOGUE(struct_type##_area, EMPTY, SUBALIGN(subalign)) \
126+
SECTION_PROLOGUE(struct_type##_area, EMPTY,) \
127127
{ \
128128
Z_LINK_ITERABLE_NUMERIC(struct_type); \
129129
} GROUP_DATA_LINK_IN(RAMABLE_REGION, ROMABLE_REGION)
@@ -141,7 +141,7 @@
141141
* Note that the symbols within the section can be garbage collected.
142142
*/
143143
#define ITERABLE_SECTION_RAM_GC_ALLOWED(struct_type, subalign) \
144-
SECTION_DATA_PROLOGUE(struct_type##_area,,SUBALIGN(subalign)) \
144+
SECTION_DATA_PROLOGUE(struct_type##_area,,) \
145145
{ \
146146
Z_LINK_ITERABLE_GC_ALLOWED(struct_type); \
147147
} GROUP_DATA_LINK_IN(RAMABLE_REGION, ROMABLE_REGION)

0 commit comments

Comments
 (0)