From 25ccc19ae929b38fe42cd7350ba82af42e01d598 Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Wed, 20 Jul 2022 08:45:38 +0200 Subject: bsps/riscv: 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. --- spec/build/bsps/riscv/linkcmdsbase.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'spec/build/bsps') diff --git a/spec/build/bsps/riscv/linkcmdsbase.yml b/spec/build/bsps/riscv/linkcmdsbase.yml index 6a4b497591..66bf65fbaa 100644 --- a/spec/build/bsps/riscv/linkcmdsbase.yml +++ b/spec/build/bsps/riscv/linkcmdsbase.yml @@ -319,7 +319,7 @@ content: | .noinit (NOLOAD) : ${LINKCMDS_ALIGN_DIRECTIVE} { 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