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

@@ -203,7 +203,7 @@ SECTIONS
} >ram
.noinit (NOLOAD) : {
*(.noinit*)
*(SORT_BY_NAME (SORT_BY_ALIGNMENT (.noinit*)))
} >ram
.rtemsstack (NOLOAD) : {

View File

@@ -203,7 +203,7 @@ SECTIONS
}
.noinit (NOLOAD) : {
*(.noinit*)
*(SORT_BY_NAME (SORT_BY_ALIGNMENT (.noinit*)))
}
.rtemsstack (NOLOAD) : {

View File

@@ -202,7 +202,7 @@ SECTIONS
} >ram
.noinit (NOLOAD) : {
*(.noinit*)
*(SORT_BY_NAME (SORT_BY_ALIGNMENT (.noinit*)))
} >ram
.rtemsstack (NOLOAD) : {

View File

@@ -159,7 +159,7 @@ SECTIONS
} > ram
.noinit (NOLOAD) : {
*(.noinit*)
*(SORT_BY_NAME (SORT_BY_ALIGNMENT (.noinit*)))
} >ram
.rtemsstack (NOLOAD) : {

View File

@@ -190,7 +190,7 @@ SECTIONS {
} >ram
.noinit (NOLOAD) : {
*(.noinit*)
*(SORT_BY_NAME (SORT_BY_ALIGNMENT (.noinit*)))
} >ram
.rtemsstack (NOLOAD) : {

View File

@@ -154,7 +154,7 @@ SECTIONS {
} >ram
.noinit (NOLOAD) : {
*(.noinit*)
*(SORT_BY_NAME (SORT_BY_ALIGNMENT (.noinit*)))
} > ram
.rtemsstack (NOLOAD) : {

View File

@@ -156,7 +156,7 @@ SECTIONS {
} >myram
.noinit (NOLOAD) : {
*(.noinit*)
*(SORT_BY_NAME (SORT_BY_ALIGNMENT (.noinit*)))
} >mvram
.rtemsstack (NOLOAD) : {

View File

@@ -154,7 +154,7 @@ SECTIONS {
} >ram
.noinit (NOLOAD) : {
*(.noinit*)
*(SORT_BY_NAME (SORT_BY_ALIGNMENT (.noinit*)))
} > ram
.rtemsstack (NOLOAD) : {

View File

@@ -192,7 +192,7 @@ SECTIONS
} > ram
.noinit (NOLOAD) : {
*(.noinit*)
*(SORT_BY_NAME (SORT_BY_ALIGNMENT (.noinit*)))
} >ram
.rtemsstack (NOLOAD) : {

View File

@@ -191,7 +191,7 @@ SECTIONS
} > ram
.noinit (NOLOAD) : {
*(.noinit*)
*(SORT_BY_NAME (SORT_BY_ALIGNMENT (.noinit*)))
} >ram
.rtemsstack (NOLOAD) : {

View File

@@ -191,7 +191,7 @@ SECTIONS
} >sram
.noinit (NOLOAD) : {
*(.noinit*)
*(SORT_BY_NAME (SORT_BY_ALIGNMENT (.noinit*)))
} >sram
.rtemsstack (NOLOAD) : {

View File

@@ -191,7 +191,7 @@ SECTIONS
} >sram
.noinit (NOLOAD) : {
*(.noinit*)
*(SORT_BY_NAME (SORT_BY_ALIGNMENT (.noinit*)))
} >sram
.rtemsstack (NOLOAD) : {

View File

@@ -210,7 +210,7 @@ SECTIONS
} > dram
.noinit (NOLOAD) : {
*(.noinit*)
*(SORT_BY_NAME (SORT_BY_ALIGNMENT (.noinit*)))
} > dram
.rtemsstack (NOLOAD) : {

View File

@@ -215,7 +215,7 @@ SECTIONS
} >ram
.noinit (NOLOAD) : {
*(.noinit*)
*(SORT_BY_NAME (SORT_BY_ALIGNMENT (.noinit*)))
} > ram
.rtemsstack (NOLOAD) : {

View File

@@ -210,7 +210,7 @@ SECTIONS
} >ram
.noinit (NOLOAD) : {
*(.noinit*)
*(SORT_BY_NAME (SORT_BY_ALIGNMENT (.noinit*)))
} > ram
.rtemsstack (NOLOAD) : {

View File

@@ -201,7 +201,7 @@ SECTIONS
} > dram
.noinit (NOLOAD) : {
*(.noinit*)
*(SORT_BY_NAME (SORT_BY_ALIGNMENT (.noinit*)))
WorkAreaBase = .;
} > dram

View File

@@ -197,7 +197,7 @@ SECTIONS
} > dram
.noinit (NOLOAD) : {
*(.noinit*)
*(SORT_BY_NAME (SORT_BY_ALIGNMENT (.noinit*)))
WorkAreaBase = .;
} > dram

View File

@@ -191,7 +191,7 @@ SECTIONS
_clear_end = .;
} > ram
.noinit (NOLOAD) : {
*(.noinit*)
*(SORT_BY_NAME (SORT_BY_ALIGNMENT (.noinit*)))
} > ram
.rtemsstack (NOLOAD) : {
*(SORT(.rtemsstack.*))

View File

@@ -264,7 +264,7 @@ SECTIONS {
.noinit (NOLOAD) : ALIGN_WITH_INPUT {
bsp_section_noinit_begin = .;
*(.noinit*)
*(SORT_BY_NAME (SORT_BY_ALIGNMENT (.noinit*)))
bsp_section_noinit_end = .;
} > REGION_DATA AT > REGION_DATA
bsp_section_noinit_size = bsp_section_noinit_end - bsp_section_noinit_begin;

View File

@@ -206,7 +206,7 @@ SECTIONS
} >ram
.noinit (NOLOAD) : {
*(.noinit*)
*(SORT_BY_NAME (SORT_BY_ALIGNMENT (.noinit*)))
} >ram
.rtemsstack (NOLOAD) : {