summaryrefslogtreecommitdiffstats
path: root/bsps/powerpc/shared
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2022-07-14 14:41:03 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2022-07-15 10:46:02 +0200
commit5ed0035377d62da7d33072f10ea04ede27422455 (patch)
tree45eaca07c47d86aba51c99895a9e761e244ac910 /bsps/powerpc/shared
parentcdtest: Restrict exceptions during sysinit (diff)
downloadrtems-5ed0035377d62da7d33072f10ea04ede27422455.tar.bz2
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.
Diffstat (limited to 'bsps/powerpc/shared')
-rw-r--r--bsps/powerpc/shared/start/linkcmds.base2
-rw-r--r--bsps/powerpc/shared/start/linkcmds.share2
2 files changed, 2 insertions, 2 deletions
diff --git a/bsps/powerpc/shared/start/linkcmds.base b/bsps/powerpc/shared/start/linkcmds.base
index a3a1b1108a..21fa729e38 100644
--- a/bsps/powerpc/shared/start/linkcmds.base
+++ b/bsps/powerpc/shared/start/linkcmds.base
@@ -358,7 +358,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;
diff --git a/bsps/powerpc/shared/start/linkcmds.share b/bsps/powerpc/shared/start/linkcmds.share
index 86b02cb18e..bb799720ce 100644
--- a/bsps/powerpc/shared/start/linkcmds.share
+++ b/bsps/powerpc/shared/start/linkcmds.share
@@ -254,7 +254,7 @@ SECTIONS
PROVIDE (__bss_end = .);
} > CODE
.noinit (NOLOAD) : {
- *(.noinit*)
+ *(SORT_BY_NAME (SORT_BY_ALIGNMENT (.noinit*)))
} > CODE
.rtemsstack (NOLOAD) : {
*(SORT(.rtemsstack.*))