[rtems commit] bsps/riscv: Sort .noinit* sections
Sebastian Huber
sebh at rtems.org
Wed Jul 20 06:38:45 UTC 2022
Module: rtems
Branch: master
Commit: 25ccc19ae929b38fe42cd7350ba82af42e01d598
Changeset: http://git.rtems.org/rtems/commit/?id=25ccc19ae929b38fe42cd7350ba82af42e01d598
Author: Sebastian Huber <sebastian.huber at embedded-brains.de>
Date: Wed Jul 20 08:45:38 2022 +0200
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(-)
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;
More information about the vc
mailing list