summaryrefslogtreecommitdiffstats
path: root/spec/build/bsps
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2022-07-20 08:45:38 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2022-07-20 08:46:13 +0200
commit25ccc19ae929b38fe42cd7350ba82af42e01d598 (patch)
treebaf1c2c774b3882cc93b444f24225bf38784c30c /spec/build/bsps
parentbuild: Add missing cxxflags (diff)
downloadrtems-25ccc19ae929b38fe42cd7350ba82af42e01d598.tar.bz2
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.
Diffstat (limited to 'spec/build/bsps')
-rw-r--r--spec/build/bsps/riscv/linkcmdsbase.yml2
1 files changed, 1 insertions, 1 deletions
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;