mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2026-09-22 05:28:32 +08:00
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:
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -129,7 +129,7 @@ SECTIONS
|
||||
} > sdram
|
||||
|
||||
.noinit (NOLOAD) : {
|
||||
*(.noinit*)
|
||||
*(SORT_BY_NAME (SORT_BY_ALIGNMENT (.noinit*)))
|
||||
} > sdram
|
||||
|
||||
.rtemsstack (NOLOAD) : {
|
||||
|
||||
@@ -137,7 +137,7 @@ SECTIONS
|
||||
} > sdram
|
||||
|
||||
.noinit (NOLOAD) : {
|
||||
*(.noinit*)
|
||||
*(SORT_BY_NAME (SORT_BY_ALIGNMENT (.noinit*)))
|
||||
} > sdram
|
||||
|
||||
.rtemsstack (NOLOAD) : {
|
||||
|
||||
@@ -126,7 +126,7 @@ SECTIONS
|
||||
} > sdram
|
||||
|
||||
.noinit (NOLOAD) : {
|
||||
*(.noinit*)
|
||||
*(SORT_BY_NAME (SORT_BY_ALIGNMENT (.noinit*)))
|
||||
} > sdram
|
||||
|
||||
.rtemsstack (NOLOAD) : {
|
||||
|
||||
@@ -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.*))
|
||||
|
||||
@@ -254,7 +254,7 @@ SECTIONS
|
||||
} > sdram
|
||||
|
||||
.noinit (NOLOAD) : {
|
||||
*(.noinit*)
|
||||
*(SORT_BY_NAME (SORT_BY_ALIGNMENT (.noinit*)))
|
||||
} > sdram
|
||||
|
||||
.rtemsstack (NOLOAD) : {
|
||||
|
||||
@@ -252,7 +252,7 @@ SECTIONS
|
||||
} > sdram
|
||||
|
||||
.noinit (NOLOAD) : {
|
||||
*(.noinit*)
|
||||
*(SORT_BY_NAME (SORT_BY_ALIGNMENT (.noinit*)))
|
||||
} > sdram
|
||||
|
||||
.rtemsstack (NOLOAD) : {
|
||||
|
||||
@@ -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) : {
|
||||
|
||||
@@ -193,7 +193,7 @@ SECTIONS
|
||||
} >ram
|
||||
|
||||
.noinit (NOLOAD) : {
|
||||
*(.noinit*)
|
||||
*(SORT_BY_NAME (SORT_BY_ALIGNMENT (.noinit*)))
|
||||
} >ram
|
||||
|
||||
.rtemsstack (NOLOAD) : {
|
||||
|
||||
@@ -171,7 +171,7 @@ SECTIONS
|
||||
}
|
||||
|
||||
.noinit (NOLOAD) : {
|
||||
*(.noinit*)
|
||||
*(SORT_BY_NAME (SORT_BY_ALIGNMENT (.noinit*)))
|
||||
}
|
||||
|
||||
.rtemsstack (NOLOAD) : {
|
||||
|
||||
@@ -168,7 +168,7 @@ SECTIONS
|
||||
}
|
||||
|
||||
.noinit (NOLOAD) : {
|
||||
*(.noinit*)
|
||||
*(SORT_BY_NAME (SORT_BY_ALIGNMENT (.noinit*)))
|
||||
}
|
||||
|
||||
.rtemsstack (NOLOAD) : {
|
||||
|
||||
@@ -169,7 +169,7 @@ SECTIONS
|
||||
}
|
||||
|
||||
.noinit (NOLOAD) : {
|
||||
*(.noinit*)
|
||||
*(SORT_BY_NAME (SORT_BY_ALIGNMENT (.noinit*)))
|
||||
}
|
||||
|
||||
.rtemsstack (NOLOAD) : {
|
||||
|
||||
@@ -171,7 +171,7 @@ SECTIONS
|
||||
}
|
||||
|
||||
.noinit (NOLOAD) : {
|
||||
*(.noinit*)
|
||||
*(SORT_BY_NAME (SORT_BY_ALIGNMENT (.noinit*)))
|
||||
}
|
||||
|
||||
.rtemsstack (NOLOAD) : {
|
||||
|
||||
@@ -171,7 +171,7 @@ SECTIONS
|
||||
}
|
||||
|
||||
.noinit (NOLOAD) : {
|
||||
*(.noinit*)
|
||||
*(SORT_BY_NAME (SORT_BY_ALIGNMENT (.noinit*)))
|
||||
}
|
||||
|
||||
.rtemsstack (NOLOAD) : {
|
||||
|
||||
@@ -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.*))
|
||||
|
||||
@@ -268,7 +268,7 @@ SECTIONS
|
||||
} > onchip_memory_0
|
||||
|
||||
.noinit (NOLOAD) : {
|
||||
*(.noinit*)
|
||||
*(SORT_BY_NAME (SORT_BY_ALIGNMENT (.noinit*)))
|
||||
} > onchip_memory_0
|
||||
|
||||
.rtemsstack (NOLOAD) : {
|
||||
|
||||
@@ -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) : {
|
||||
|
||||
@@ -290,7 +290,7 @@ SECTIONS
|
||||
clear_end = .;
|
||||
|
||||
.noinit (NOLOAD) : {
|
||||
*(.noinit*)
|
||||
*(SORT_BY_NAME (SORT_BY_ALIGNMENT (.noinit*)))
|
||||
} >ram
|
||||
|
||||
.rtemsstack (NOLOAD) : {
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -254,7 +254,7 @@ SECTIONS
|
||||
PROVIDE (__bss_end = .);
|
||||
} > CODE
|
||||
.noinit (NOLOAD) : {
|
||||
*(.noinit*)
|
||||
*(SORT_BY_NAME (SORT_BY_ALIGNMENT (.noinit*)))
|
||||
} > CODE
|
||||
.rtemsstack (NOLOAD) : {
|
||||
*(SORT(.rtemsstack.*))
|
||||
|
||||
@@ -234,7 +234,7 @@ SECTIONS
|
||||
PROVIDE(_end = bss.end);
|
||||
|
||||
.noinit (NOLOAD) : {
|
||||
*(.noinit*)
|
||||
*(SORT_BY_NAME (SORT_BY_ALIGNMENT (.noinit*)))
|
||||
}
|
||||
|
||||
.rtemsstack (NOLOAD) : {
|
||||
|
||||
@@ -253,7 +253,7 @@ SECTIONS
|
||||
PROVIDE(__bsp_ram_start = .);
|
||||
|
||||
.noinit (NOLOAD) : {
|
||||
*(.noinit*)
|
||||
*(SORT_BY_NAME (SORT_BY_ALIGNMENT (.noinit*)))
|
||||
} >RAM
|
||||
|
||||
.rtemsstack (NOLOAD) : {
|
||||
|
||||
@@ -253,7 +253,7 @@ SECTIONS
|
||||
PROVIDE(__bsp_ram_start = .);
|
||||
|
||||
.noinit (NOLOAD) : {
|
||||
*(.noinit*)
|
||||
*(SORT_BY_NAME (SORT_BY_ALIGNMENT (.noinit*)))
|
||||
} >RAM
|
||||
|
||||
.rtemsstack (NOLOAD) : {
|
||||
|
||||
@@ -188,7 +188,7 @@ SECTIONS
|
||||
PROVIDE (end = .);
|
||||
|
||||
.noinit (NOLOAD) : {
|
||||
*(.noinit*)
|
||||
*(SORT_BY_NAME (SORT_BY_ALIGNMENT (.noinit*)))
|
||||
} > ram
|
||||
|
||||
.rtemsstackidle (NOLOAD) : {
|
||||
|
||||
@@ -199,7 +199,7 @@ SECTIONS
|
||||
PROVIDE (end = .);
|
||||
|
||||
.noinit (NOLOAD) : {
|
||||
*(.noinit*)
|
||||
*(SORT_BY_NAME (SORT_BY_ALIGNMENT (.noinit*)))
|
||||
} > ram
|
||||
|
||||
.rtemsstackidle (NOLOAD) : {
|
||||
|
||||
@@ -201,7 +201,7 @@ SECTIONS
|
||||
PROVIDE (end = .);
|
||||
|
||||
.noinit (NOLOAD) : {
|
||||
*(.noinit*)
|
||||
*(SORT_BY_NAME (SORT_BY_ALIGNMENT (.noinit*)))
|
||||
} > ram
|
||||
|
||||
.rtemsstackidle (NOLOAD) : {
|
||||
|
||||
@@ -202,7 +202,7 @@ SECTIONS
|
||||
PROVIDE (end = .);
|
||||
|
||||
.noinit (NOLOAD) : {
|
||||
*(.noinit*)
|
||||
*(SORT_BY_NAME (SORT_BY_ALIGNMENT (.noinit*)))
|
||||
} > ram
|
||||
|
||||
.rtemsstackidle (NOLOAD) : {
|
||||
|
||||
@@ -146,7 +146,7 @@ SECTIONS
|
||||
} > ram
|
||||
|
||||
.noinit (NOLOAD) : {
|
||||
*(.noinit*)
|
||||
*(SORT_BY_NAME (SORT_BY_ALIGNMENT (.noinit*)))
|
||||
} > ram
|
||||
|
||||
.rtemsstack (NOLOAD) : {
|
||||
|
||||
@@ -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
Reference in New Issue
Block a user