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.
This commit is contained in:
Sebastian Huber
2022-07-14 14:41:03 +02:00
parent 656765c74b
commit 5ed0035377
56 changed files with 56 additions and 56 deletions

View File

@@ -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;

View File

@@ -254,7 +254,7 @@ SECTIONS
PROVIDE (__bss_end = .);
} > CODE
.noinit (NOLOAD) : {
*(.noinit*)
*(SORT_BY_NAME (SORT_BY_ALIGNMENT (.noinit*)))
} > CODE
.rtemsstack (NOLOAD) : {
*(SORT(.rtemsstack.*))