Skip to content

Commit 19d7b6d

Browse files
tejlmandbjarki-andreasen
authored andcommitted
linker: replace ALIGN_WITH_INPUT with SECTION_DATA_PROLOGUE macro
ALIGN_WITH_INPUT is not supported with LLD and therefore linker scripts containing this flag will fail. For LLD, then linking with -omagic (-N) achives the same as what is needed for XIP systems using ALIGN_WITH_INPUT, therefore adopt ld snippets to use the Zephyr provided SECTION_DATA_PROLOGUE() macro. Signed-off-by: Torsten Rasmussen <[email protected]>
1 parent 9876713 commit 19d7b6d

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
config_channel_modules : ALIGN_WITH_INPUT
1+
SECTION_DATA_PROLOGUE(config_channel_modules,,)
22
{
33
KEEP(*(SORT(config_channel_modules)));
44
} GROUP_LINK_IN(ROMABLE_REGION)

subsys/app_event_manager/aem.ld

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ ITERABLE_SECTION_ROM(event_submit_hook, 4)
55
ITERABLE_SECTION_ROM(event_preprocess_hook, 4)
66
ITERABLE_SECTION_ROM(event_postprocess_hook, 4)
77

8-
event_subscribers_all : ALIGN_WITH_INPUT
8+
SECTION_DATA_PROLOGUE(event_subscribers_all,,)
99
{
1010
__start_event_subscribers_all = .;
1111
KEEP(*(SORT(event_subscribers_*)));

subsys/event_manager_proxy/em_proxy.ld

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ event_manager_proxy_event_type_pointer_size_section 0 (DSECT) :
88
KEEP(*(event_manager_proxy_event_type_pointer_size));
99
}
1010

11-
event_manager_proxy_array : ALIGN_WITH_INPUT
11+
SECTION_DATA_PROLOGUE(event_manager_proxy_array,,)
1212
{
1313
_event_manager_proxy_array_list_start = .;
1414
event_manager_proxy_array = .;

0 commit comments

Comments
 (0)