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-15 10:46:02 +02:00
parent 656765c74b
commit 5ed0035377
56 changed files with 56 additions and 56 deletions
+1 -1
View File
@@ -323,7 +323,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;
+1 -1
View File
@@ -334,7 +334,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;
+1 -1
View File
@@ -129,7 +129,7 @@ SECTIONS
} > sdram
.noinit (NOLOAD) : {
*(.noinit*)
*(SORT_BY_NAME (SORT_BY_ALIGNMENT (.noinit*)))
} > sdram
.rtemsstack (NOLOAD) : {
+1 -1
View File
@@ -137,7 +137,7 @@ SECTIONS
} > sdram
.noinit (NOLOAD) : {
*(.noinit*)
*(SORT_BY_NAME (SORT_BY_ALIGNMENT (.noinit*)))
} > sdram
.rtemsstack (NOLOAD) : {
+1 -1
View File
@@ -126,7 +126,7 @@ SECTIONS
} > sdram
.noinit (NOLOAD) : {
*(.noinit*)
*(SORT_BY_NAME (SORT_BY_ALIGNMENT (.noinit*)))
} > sdram
.rtemsstack (NOLOAD) : {
+1 -1
View File
@@ -206,7 +206,7 @@ SECTIONS
. = ALIGN(32 / 8);
_end = .; PROVIDE (end = .);
.noinit (NOLOAD) : {
*(.noinit*)
*(SORT_BY_NAME (SORT_BY_ALIGNMENT (.noinit*)))
}
.rtemsstack (NOLOAD) : {
*(SORT(.rtemsstack.*))
+1 -1
View File
@@ -254,7 +254,7 @@ SECTIONS
} > sdram
.noinit (NOLOAD) : {
*(.noinit*)
*(SORT_BY_NAME (SORT_BY_ALIGNMENT (.noinit*)))
} > sdram
.rtemsstack (NOLOAD) : {
+1 -1
View File
@@ -252,7 +252,7 @@ SECTIONS
} > sdram
.noinit (NOLOAD) : {
*(.noinit*)
*(SORT_BY_NAME (SORT_BY_ALIGNMENT (.noinit*)))
} > sdram
.rtemsstack (NOLOAD) : {
+1 -1
View File
@@ -203,7 +203,7 @@ SECTIONS
} >ram
.noinit (NOLOAD) : {
*(.noinit*)
*(SORT_BY_NAME (SORT_BY_ALIGNMENT (.noinit*)))
} >ram
.rtemsstack (NOLOAD) : {
+1 -1
View File
@@ -203,7 +203,7 @@ SECTIONS
}
.noinit (NOLOAD) : {
*(.noinit*)
*(SORT_BY_NAME (SORT_BY_ALIGNMENT (.noinit*)))
}
.rtemsstack (NOLOAD) : {
+1 -1
View File
@@ -202,7 +202,7 @@ SECTIONS
} >ram
.noinit (NOLOAD) : {
*(.noinit*)
*(SORT_BY_NAME (SORT_BY_ALIGNMENT (.noinit*)))
} >ram
.rtemsstack (NOLOAD) : {
+1 -1
View File
@@ -159,7 +159,7 @@ SECTIONS
} > ram
.noinit (NOLOAD) : {
*(.noinit*)
*(SORT_BY_NAME (SORT_BY_ALIGNMENT (.noinit*)))
} >ram
.rtemsstack (NOLOAD) : {
+1 -1
View File
@@ -190,7 +190,7 @@ SECTIONS {
} >ram
.noinit (NOLOAD) : {
*(.noinit*)
*(SORT_BY_NAME (SORT_BY_ALIGNMENT (.noinit*)))
} >ram
.rtemsstack (NOLOAD) : {
+1 -1
View File
@@ -154,7 +154,7 @@ SECTIONS {
} >ram
.noinit (NOLOAD) : {
*(.noinit*)
*(SORT_BY_NAME (SORT_BY_ALIGNMENT (.noinit*)))
} > ram
.rtemsstack (NOLOAD) : {
+1 -1
View File
@@ -156,7 +156,7 @@ SECTIONS {
} >myram
.noinit (NOLOAD) : {
*(.noinit*)
*(SORT_BY_NAME (SORT_BY_ALIGNMENT (.noinit*)))
} >mvram
.rtemsstack (NOLOAD) : {
+1 -1
View File
@@ -154,7 +154,7 @@ SECTIONS {
} >ram
.noinit (NOLOAD) : {
*(.noinit*)
*(SORT_BY_NAME (SORT_BY_ALIGNMENT (.noinit*)))
} > ram
.rtemsstack (NOLOAD) : {
+1 -1
View File
@@ -192,7 +192,7 @@ SECTIONS
} > ram
.noinit (NOLOAD) : {
*(.noinit*)
*(SORT_BY_NAME (SORT_BY_ALIGNMENT (.noinit*)))
} >ram
.rtemsstack (NOLOAD) : {
+1 -1
View File
@@ -191,7 +191,7 @@ SECTIONS
} > ram
.noinit (NOLOAD) : {
*(.noinit*)
*(SORT_BY_NAME (SORT_BY_ALIGNMENT (.noinit*)))
} >ram
.rtemsstack (NOLOAD) : {
+1 -1
View File
@@ -191,7 +191,7 @@ SECTIONS
} >sram
.noinit (NOLOAD) : {
*(.noinit*)
*(SORT_BY_NAME (SORT_BY_ALIGNMENT (.noinit*)))
} >sram
.rtemsstack (NOLOAD) : {
+1 -1
View File
@@ -191,7 +191,7 @@ SECTIONS
} >sram
.noinit (NOLOAD) : {
*(.noinit*)
*(SORT_BY_NAME (SORT_BY_ALIGNMENT (.noinit*)))
} >sram
.rtemsstack (NOLOAD) : {
+1 -1
View File
@@ -210,7 +210,7 @@ SECTIONS
} > dram
.noinit (NOLOAD) : {
*(.noinit*)
*(SORT_BY_NAME (SORT_BY_ALIGNMENT (.noinit*)))
} > dram
.rtemsstack (NOLOAD) : {
+1 -1
View File
@@ -215,7 +215,7 @@ SECTIONS
} >ram
.noinit (NOLOAD) : {
*(.noinit*)
*(SORT_BY_NAME (SORT_BY_ALIGNMENT (.noinit*)))
} > ram
.rtemsstack (NOLOAD) : {
+1 -1
View File
@@ -210,7 +210,7 @@ SECTIONS
} >ram
.noinit (NOLOAD) : {
*(.noinit*)
*(SORT_BY_NAME (SORT_BY_ALIGNMENT (.noinit*)))
} > ram
.rtemsstack (NOLOAD) : {
+1 -1
View File
@@ -201,7 +201,7 @@ SECTIONS
} > dram
.noinit (NOLOAD) : {
*(.noinit*)
*(SORT_BY_NAME (SORT_BY_ALIGNMENT (.noinit*)))
WorkAreaBase = .;
} > dram
+1 -1
View File
@@ -197,7 +197,7 @@ SECTIONS
} > dram
.noinit (NOLOAD) : {
*(.noinit*)
*(SORT_BY_NAME (SORT_BY_ALIGNMENT (.noinit*)))
WorkAreaBase = .;
} > dram
+1 -1
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.*))
+1 -1
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;
+1 -1
View File
@@ -206,7 +206,7 @@ SECTIONS
} >ram
.noinit (NOLOAD) : {
*(.noinit*)
*(SORT_BY_NAME (SORT_BY_ALIGNMENT (.noinit*)))
} >ram
.rtemsstack (NOLOAD) : {
+1 -1
View File
@@ -193,7 +193,7 @@ SECTIONS
} >ram
.noinit (NOLOAD) : {
*(.noinit*)
*(SORT_BY_NAME (SORT_BY_ALIGNMENT (.noinit*)))
} >ram
.rtemsstack (NOLOAD) : {
+1 -1
View File
@@ -171,7 +171,7 @@ SECTIONS
}
.noinit (NOLOAD) : {
*(.noinit*)
*(SORT_BY_NAME (SORT_BY_ALIGNMENT (.noinit*)))
}
.rtemsstack (NOLOAD) : {
+1 -1
View File
@@ -168,7 +168,7 @@ SECTIONS
}
.noinit (NOLOAD) : {
*(.noinit*)
*(SORT_BY_NAME (SORT_BY_ALIGNMENT (.noinit*)))
}
.rtemsstack (NOLOAD) : {
+1 -1
View File
@@ -169,7 +169,7 @@ SECTIONS
}
.noinit (NOLOAD) : {
*(.noinit*)
*(SORT_BY_NAME (SORT_BY_ALIGNMENT (.noinit*)))
}
.rtemsstack (NOLOAD) : {
+1 -1
View File
@@ -171,7 +171,7 @@ SECTIONS
}
.noinit (NOLOAD) : {
*(.noinit*)
*(SORT_BY_NAME (SORT_BY_ALIGNMENT (.noinit*)))
}
.rtemsstack (NOLOAD) : {
+1 -1
View File
@@ -171,7 +171,7 @@ SECTIONS
}
.noinit (NOLOAD) : {
*(.noinit*)
*(SORT_BY_NAME (SORT_BY_ALIGNMENT (.noinit*)))
}
.rtemsstack (NOLOAD) : {
+1 -1
View File
@@ -231,7 +231,7 @@ SECTIONS
_bss_end__ = . ; __bss_end__ = . ; __end__ = . ;
PROVIDE (end = .);
.noinit (NOLOAD) : {
*(.noinit*)
*(SORT_BY_NAME (SORT_BY_ALIGNMENT (.noinit*)))
}
.rtemsstack (NOLOAD) : {
*(SORT(.rtemsstack.*))
+1 -1
View File
@@ -268,7 +268,7 @@ SECTIONS
} > onchip_memory_0
.noinit (NOLOAD) : {
*(.noinit*)
*(SORT_BY_NAME (SORT_BY_ALIGNMENT (.noinit*)))
} > onchip_memory_0
.rtemsstack (NOLOAD) : {
+1 -1
View File
@@ -287,7 +287,7 @@ SECTIONS {
.noinit (NOLOAD) : ALIGN_WITH_INPUT {
bsp_section_noinit_begin = .;
*(.noinit*)
*(SORT_BY_NAME (SORT_BY_ALIGNMENT (.noinit*)))
bsp_section_noinit_end = .;
} > REGION_BSS AT > REGION_BSS
bsp_section_noinit_size = bsp_section_noinit_end - bsp_section_noinit_begin;
@@ -296,7 +296,7 @@ SECTIONS {
bsp_section_bss_size = bsp_section_bss_end - bsp_section_bss_start;
.noinit (NOLOAD) : {
*(.noinit*)
*(SORT_BY_NAME (SORT_BY_ALIGNMENT (.noinit*)))
} > RAM
.rtemsstack (NOLOAD) : {
+1 -1
View File
@@ -290,7 +290,7 @@ SECTIONS
clear_end = .;
.noinit (NOLOAD) : {
*(.noinit*)
*(SORT_BY_NAME (SORT_BY_ALIGNMENT (.noinit*)))
} >ram
.rtemsstack (NOLOAD) : {
+1 -1
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;
+1 -1
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.*))
+1 -1
View File
@@ -234,7 +234,7 @@ SECTIONS
PROVIDE(_end = bss.end);
.noinit (NOLOAD) : {
*(.noinit*)
*(SORT_BY_NAME (SORT_BY_ALIGNMENT (.noinit*)))
}
.rtemsstack (NOLOAD) : {
+1 -1
View File
@@ -253,7 +253,7 @@ SECTIONS
PROVIDE(__bsp_ram_start = .);
.noinit (NOLOAD) : {
*(.noinit*)
*(SORT_BY_NAME (SORT_BY_ALIGNMENT (.noinit*)))
} >RAM
.rtemsstack (NOLOAD) : {
+1 -1
View File
@@ -253,7 +253,7 @@ SECTIONS
PROVIDE(__bsp_ram_start = .);
.noinit (NOLOAD) : {
*(.noinit*)
*(SORT_BY_NAME (SORT_BY_ALIGNMENT (.noinit*)))
} >RAM
.rtemsstack (NOLOAD) : {
+1 -1
View File
@@ -188,7 +188,7 @@ SECTIONS
PROVIDE (end = .);
.noinit (NOLOAD) : {
*(.noinit*)
*(SORT_BY_NAME (SORT_BY_ALIGNMENT (.noinit*)))
} > ram
.rtemsstackidle (NOLOAD) : {
+1 -1
View File
@@ -199,7 +199,7 @@ SECTIONS
PROVIDE (end = .);
.noinit (NOLOAD) : {
*(.noinit*)
*(SORT_BY_NAME (SORT_BY_ALIGNMENT (.noinit*)))
} > ram
.rtemsstackidle (NOLOAD) : {
+1 -1
View File
@@ -201,7 +201,7 @@ SECTIONS
PROVIDE (end = .);
.noinit (NOLOAD) : {
*(.noinit*)
*(SORT_BY_NAME (SORT_BY_ALIGNMENT (.noinit*)))
} > ram
.rtemsstackidle (NOLOAD) : {
+1 -1
View File
@@ -202,7 +202,7 @@ SECTIONS
PROVIDE (end = .);
.noinit (NOLOAD) : {
*(.noinit*)
*(SORT_BY_NAME (SORT_BY_ALIGNMENT (.noinit*)))
} > ram
.rtemsstackidle (NOLOAD) : {
+1 -1
View File
@@ -146,7 +146,7 @@ SECTIONS
} > ram
.noinit (NOLOAD) : {
*(.noinit*)
*(SORT_BY_NAME (SORT_BY_ALIGNMENT (.noinit*)))
} > ram
.rtemsstack (NOLOAD) : {
+1 -1
View File
@@ -189,7 +189,7 @@ SECTIONS
} > ram
.noinit (NOLOAD) : {
*(.noinit*)
*(SORT_BY_NAME (SORT_BY_ALIGNMENT (.noinit*)))
} > ram
.rtemsstack (NOLOAD) : {

Some files were not shown because too many files have changed in this diff Show More