From 5ed0035377d62da7d33072f10ea04ede27422455 Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Thu, 14 Jul 2022 14:41:03 +0200 Subject: bsps: Sort .noinit* sections Sort the .noinit* input sections by name first, then by alignment if two sections have the same name. This allows the placement of begin/end symbols to initialize some areas with a special value. Update #4678. --- bsps/arm/shared/start/linkcmds.base | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bsps/arm') diff --git a/bsps/arm/shared/start/linkcmds.base b/bsps/arm/shared/start/linkcmds.base index 10d2c54028..c9cf360ee7 100644 --- a/bsps/arm/shared/start/linkcmds.base +++ b/bsps/arm/shared/start/linkcmds.base @@ -334,7 +334,7 @@ SECTIONS { .noinit (NOLOAD) : ALIGN_WITH_INPUT { bsp_section_noinit_begin = .; - *(.noinit*) + *(SORT_BY_NAME (SORT_BY_ALIGNMENT (.noinit*))) bsp_section_noinit_end = .; } > REGION_WORK AT > REGION_WORK bsp_section_noinit_size = bsp_section_noinit_end - bsp_section_noinit_begin; -- cgit v1.2.3