forked from Imagelibrary/rtems
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:
@@ -203,7 +203,7 @@ SECTIONS
|
||||
} >ram
|
||||
|
||||
.noinit (NOLOAD) : {
|
||||
*(.noinit*)
|
||||
*(SORT_BY_NAME (SORT_BY_ALIGNMENT (.noinit*)))
|
||||
} >ram
|
||||
|
||||
.rtemsstack (NOLOAD) : {
|
||||
|
||||
@@ -203,7 +203,7 @@ SECTIONS
|
||||
}
|
||||
|
||||
.noinit (NOLOAD) : {
|
||||
*(.noinit*)
|
||||
*(SORT_BY_NAME (SORT_BY_ALIGNMENT (.noinit*)))
|
||||
}
|
||||
|
||||
.rtemsstack (NOLOAD) : {
|
||||
|
||||
@@ -202,7 +202,7 @@ SECTIONS
|
||||
} >ram
|
||||
|
||||
.noinit (NOLOAD) : {
|
||||
*(.noinit*)
|
||||
*(SORT_BY_NAME (SORT_BY_ALIGNMENT (.noinit*)))
|
||||
} >ram
|
||||
|
||||
.rtemsstack (NOLOAD) : {
|
||||
|
||||
@@ -159,7 +159,7 @@ SECTIONS
|
||||
} > ram
|
||||
|
||||
.noinit (NOLOAD) : {
|
||||
*(.noinit*)
|
||||
*(SORT_BY_NAME (SORT_BY_ALIGNMENT (.noinit*)))
|
||||
} >ram
|
||||
|
||||
.rtemsstack (NOLOAD) : {
|
||||
|
||||
@@ -190,7 +190,7 @@ SECTIONS {
|
||||
} >ram
|
||||
|
||||
.noinit (NOLOAD) : {
|
||||
*(.noinit*)
|
||||
*(SORT_BY_NAME (SORT_BY_ALIGNMENT (.noinit*)))
|
||||
} >ram
|
||||
|
||||
.rtemsstack (NOLOAD) : {
|
||||
|
||||
@@ -154,7 +154,7 @@ SECTIONS {
|
||||
} >ram
|
||||
|
||||
.noinit (NOLOAD) : {
|
||||
*(.noinit*)
|
||||
*(SORT_BY_NAME (SORT_BY_ALIGNMENT (.noinit*)))
|
||||
} > ram
|
||||
|
||||
.rtemsstack (NOLOAD) : {
|
||||
|
||||
@@ -156,7 +156,7 @@ SECTIONS {
|
||||
} >myram
|
||||
|
||||
.noinit (NOLOAD) : {
|
||||
*(.noinit*)
|
||||
*(SORT_BY_NAME (SORT_BY_ALIGNMENT (.noinit*)))
|
||||
} >mvram
|
||||
|
||||
.rtemsstack (NOLOAD) : {
|
||||
|
||||
@@ -154,7 +154,7 @@ SECTIONS {
|
||||
} >ram
|
||||
|
||||
.noinit (NOLOAD) : {
|
||||
*(.noinit*)
|
||||
*(SORT_BY_NAME (SORT_BY_ALIGNMENT (.noinit*)))
|
||||
} > ram
|
||||
|
||||
.rtemsstack (NOLOAD) : {
|
||||
|
||||
@@ -192,7 +192,7 @@ SECTIONS
|
||||
} > ram
|
||||
|
||||
.noinit (NOLOAD) : {
|
||||
*(.noinit*)
|
||||
*(SORT_BY_NAME (SORT_BY_ALIGNMENT (.noinit*)))
|
||||
} >ram
|
||||
|
||||
.rtemsstack (NOLOAD) : {
|
||||
|
||||
@@ -191,7 +191,7 @@ SECTIONS
|
||||
} > ram
|
||||
|
||||
.noinit (NOLOAD) : {
|
||||
*(.noinit*)
|
||||
*(SORT_BY_NAME (SORT_BY_ALIGNMENT (.noinit*)))
|
||||
} >ram
|
||||
|
||||
.rtemsstack (NOLOAD) : {
|
||||
|
||||
@@ -191,7 +191,7 @@ SECTIONS
|
||||
} >sram
|
||||
|
||||
.noinit (NOLOAD) : {
|
||||
*(.noinit*)
|
||||
*(SORT_BY_NAME (SORT_BY_ALIGNMENT (.noinit*)))
|
||||
} >sram
|
||||
|
||||
.rtemsstack (NOLOAD) : {
|
||||
|
||||
@@ -191,7 +191,7 @@ SECTIONS
|
||||
} >sram
|
||||
|
||||
.noinit (NOLOAD) : {
|
||||
*(.noinit*)
|
||||
*(SORT_BY_NAME (SORT_BY_ALIGNMENT (.noinit*)))
|
||||
} >sram
|
||||
|
||||
.rtemsstack (NOLOAD) : {
|
||||
|
||||
@@ -210,7 +210,7 @@ SECTIONS
|
||||
} > dram
|
||||
|
||||
.noinit (NOLOAD) : {
|
||||
*(.noinit*)
|
||||
*(SORT_BY_NAME (SORT_BY_ALIGNMENT (.noinit*)))
|
||||
} > dram
|
||||
|
||||
.rtemsstack (NOLOAD) : {
|
||||
|
||||
@@ -215,7 +215,7 @@ SECTIONS
|
||||
} >ram
|
||||
|
||||
.noinit (NOLOAD) : {
|
||||
*(.noinit*)
|
||||
*(SORT_BY_NAME (SORT_BY_ALIGNMENT (.noinit*)))
|
||||
} > ram
|
||||
|
||||
.rtemsstack (NOLOAD) : {
|
||||
|
||||
@@ -210,7 +210,7 @@ SECTIONS
|
||||
} >ram
|
||||
|
||||
.noinit (NOLOAD) : {
|
||||
*(.noinit*)
|
||||
*(SORT_BY_NAME (SORT_BY_ALIGNMENT (.noinit*)))
|
||||
} > ram
|
||||
|
||||
.rtemsstack (NOLOAD) : {
|
||||
|
||||
@@ -201,7 +201,7 @@ SECTIONS
|
||||
} > dram
|
||||
|
||||
.noinit (NOLOAD) : {
|
||||
*(.noinit*)
|
||||
*(SORT_BY_NAME (SORT_BY_ALIGNMENT (.noinit*)))
|
||||
WorkAreaBase = .;
|
||||
} > dram
|
||||
|
||||
|
||||
@@ -197,7 +197,7 @@ SECTIONS
|
||||
} > dram
|
||||
|
||||
.noinit (NOLOAD) : {
|
||||
*(.noinit*)
|
||||
*(SORT_BY_NAME (SORT_BY_ALIGNMENT (.noinit*)))
|
||||
WorkAreaBase = .;
|
||||
} > dram
|
||||
|
||||
|
||||
@@ -191,7 +191,7 @@ SECTIONS
|
||||
_clear_end = .;
|
||||
} > ram
|
||||
.noinit (NOLOAD) : {
|
||||
*(.noinit*)
|
||||
*(SORT_BY_NAME (SORT_BY_ALIGNMENT (.noinit*)))
|
||||
} > ram
|
||||
.rtemsstack (NOLOAD) : {
|
||||
*(SORT(.rtemsstack.*))
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -206,7 +206,7 @@ SECTIONS
|
||||
} >ram
|
||||
|
||||
.noinit (NOLOAD) : {
|
||||
*(.noinit*)
|
||||
*(SORT_BY_NAME (SORT_BY_ALIGNMENT (.noinit*)))
|
||||
} >ram
|
||||
|
||||
.rtemsstack (NOLOAD) : {
|
||||
|
||||
Reference in New Issue
Block a user