forked from Imagelibrary/rtems
bsps: Support .rtemsstack.* linker input sections
Use a dedicated memory region or place it between the BSS and workspace. Update #3459.
This commit is contained in:
@@ -180,9 +180,13 @@ SECTIONS
|
||||
. = ALIGN (16);
|
||||
PROVIDE (end = .);
|
||||
_clear_end = .;
|
||||
} >ram
|
||||
|
||||
.rtemsstack (NOLOAD) : {
|
||||
*(SORT(.rtemsstack.*))
|
||||
WorkAreaBase = .;
|
||||
} >ram
|
||||
|
||||
/* Stabs debugging sections. */
|
||||
.stab 0 : { *(.stab) }
|
||||
.stabstr 0 : { *(.stabstr) }
|
||||
|
||||
@@ -180,7 +180,10 @@ SECTIONS
|
||||
. = ALIGN (16);
|
||||
PROVIDE (end = .);
|
||||
_clear_end = .;
|
||||
}
|
||||
|
||||
.rtemsstack (NOLOAD) : {
|
||||
*(SORT(.rtemsstack.*))
|
||||
WorkAreaBase = .;
|
||||
}
|
||||
/* Stabs debugging sections. */
|
||||
|
||||
@@ -179,9 +179,13 @@ SECTIONS
|
||||
. = ALIGN (16);
|
||||
PROVIDE (end = .);
|
||||
_clear_end = .;
|
||||
} >ram
|
||||
|
||||
.rtemsstack (NOLOAD) : {
|
||||
*(SORT(.rtemsstack.*))
|
||||
WorkAreaBase = .;
|
||||
} >ram
|
||||
|
||||
/* Stabs debugging sections. */
|
||||
.stab 0 : { *(.stab) }
|
||||
.stabstr 0 : { *(.stabstr) }
|
||||
|
||||
@@ -155,12 +155,13 @@ SECTIONS
|
||||
_end = .;
|
||||
|
||||
clear_end = .;
|
||||
|
||||
WorkAreaBase = .;
|
||||
WorkAreaBase = .;
|
||||
|
||||
} > ram
|
||||
|
||||
.rtemsstack (NOLOAD) : {
|
||||
*(SORT(.rtemsstack.*))
|
||||
WorkAreaBase = .;
|
||||
} >ram
|
||||
|
||||
.stab 0 (NOLOAD) :
|
||||
{
|
||||
*(.stab)
|
||||
|
||||
@@ -191,7 +191,10 @@ SECTIONS {
|
||||
. = ALIGN (16);
|
||||
_stack_init = .;
|
||||
_clear_end = .;
|
||||
} >ram
|
||||
|
||||
.rtemsstack (NOLOAD) : {
|
||||
*(SORT(.rtemsstack.*))
|
||||
WorkAreaBase = .;
|
||||
} >ram
|
||||
|
||||
|
||||
@@ -155,7 +155,10 @@ SECTIONS {
|
||||
. = ALIGN (16);
|
||||
_stack_init = .;
|
||||
_clear_end = .;
|
||||
} >ram
|
||||
|
||||
.rtemsstack (NOLOAD) : {
|
||||
*(SORT(.rtemsstack.*))
|
||||
WorkAreaBase = .;
|
||||
} >ram
|
||||
|
||||
|
||||
@@ -157,7 +157,10 @@ SECTIONS {
|
||||
. = ALIGN (16);
|
||||
_stack_init = .;
|
||||
_clear_end = .;
|
||||
} >myram
|
||||
|
||||
.rtemsstack (NOLOAD) : {
|
||||
*(SORT(.rtemsstack.*))
|
||||
WorkAreaBase = .;
|
||||
} >myram
|
||||
|
||||
|
||||
@@ -155,7 +155,10 @@ SECTIONS {
|
||||
. = ALIGN (16);
|
||||
_stack_init = .;
|
||||
_clear_end = .;
|
||||
} >ram
|
||||
|
||||
.rtemsstack (NOLOAD) : {
|
||||
*(SORT(.rtemsstack.*))
|
||||
WorkAreaBase = .;
|
||||
} >ram
|
||||
|
||||
|
||||
@@ -188,10 +188,11 @@ SECTIONS
|
||||
_end = .;
|
||||
|
||||
clear_end = .;
|
||||
} > ram
|
||||
|
||||
.rtemsstack (NOLOAD) : {
|
||||
*(SORT(.rtemsstack.*))
|
||||
WorkAreaBase = .;
|
||||
WorkAreaBase = .;
|
||||
|
||||
} > ram
|
||||
|
||||
.stab 0 (NOLOAD) :
|
||||
|
||||
@@ -188,10 +188,11 @@ SECTIONS
|
||||
_end = .;
|
||||
|
||||
clear_end = .;
|
||||
} > ram
|
||||
|
||||
.rtemsstack (NOLOAD) : {
|
||||
*(SORT(.rtemsstack.*))
|
||||
WorkAreaBase = .;
|
||||
WorkAreaBase = .;
|
||||
|
||||
} > ram
|
||||
|
||||
.stab 0 (NOLOAD) :
|
||||
|
||||
@@ -179,6 +179,10 @@ SECTIONS
|
||||
. += _StackSize;
|
||||
. = ALIGN (16);
|
||||
PROVIDE(_StackInit = .);
|
||||
} >sram
|
||||
|
||||
.rtemsstack (NOLOAD) : {
|
||||
*(SORT(.rtemsstack.*))
|
||||
PROVIDE(WorkAreaBase = .);
|
||||
} >sram
|
||||
|
||||
|
||||
@@ -179,6 +179,10 @@ SECTIONS
|
||||
. += _StackSize;
|
||||
. = ALIGN (16);
|
||||
PROVIDE(_StackInit = .);
|
||||
} >sram
|
||||
|
||||
.rtemsstack (NOLOAD) : {
|
||||
*(SORT(.rtemsstack.*))
|
||||
PROVIDE(WorkAreaBase = .);
|
||||
} >sram
|
||||
|
||||
|
||||
@@ -187,7 +187,10 @@ SECTIONS
|
||||
. = ALIGN (16);
|
||||
PROVIDE (end = .);
|
||||
_clear_end = .;
|
||||
} > dram
|
||||
|
||||
.rtemsstack (NOLOAD) : {
|
||||
*(SORT(.rtemsstack.*))
|
||||
WorkAreaBase = .;
|
||||
} > dram
|
||||
/* Stabs debugging sections. */
|
||||
|
||||
@@ -192,7 +192,10 @@ SECTIONS
|
||||
. = ALIGN (16);
|
||||
PROVIDE (end = .);
|
||||
_clear_end = .;
|
||||
} >ram
|
||||
|
||||
.rtemsstack (NOLOAD) : {
|
||||
*(SORT(.rtemsstack.*))
|
||||
WorkAreaBase = .;
|
||||
} >ram
|
||||
/* Stabs debugging sections. */
|
||||
|
||||
@@ -187,9 +187,13 @@ SECTIONS
|
||||
. = ALIGN (16);
|
||||
PROVIDE (end = .);
|
||||
_clear_end = .;
|
||||
} >ram
|
||||
|
||||
.rtemsstack (NOLOAD) : {
|
||||
*(SORT(.rtemsstack.*))
|
||||
WorkAreaBase = .;
|
||||
} >ram
|
||||
|
||||
/* Stabs debugging sections. */
|
||||
.stab 0 : { *(.stab) }
|
||||
.stabstr 0 : { *(.stabstr) }
|
||||
|
||||
@@ -180,6 +180,10 @@ SECTIONS
|
||||
PROVIDE (_end = .);
|
||||
|
||||
_clear_end = .;
|
||||
} > dram
|
||||
|
||||
.rtemsstack (NOLOAD) : {
|
||||
*(SORT(.rtemsstack.*))
|
||||
WorkAreaBase = .;
|
||||
} > dram
|
||||
|
||||
|
||||
@@ -176,6 +176,10 @@ SECTIONS
|
||||
PROVIDE (_end = .);
|
||||
|
||||
_clear_end = .;
|
||||
} > dram
|
||||
|
||||
.rtemsstack (NOLOAD) : {
|
||||
*(SORT(.rtemsstack.*))
|
||||
WorkAreaBase = .;
|
||||
} > dram
|
||||
|
||||
|
||||
@@ -198,7 +198,9 @@ SECTIONS
|
||||
. = ALIGN (16);
|
||||
_stack_init = .;
|
||||
_clear_end = .;
|
||||
|
||||
} > ram
|
||||
.rtemsstack (NOLOAD) : {
|
||||
*(SORT(.rtemsstack.*))
|
||||
WorkAreaBase = .;
|
||||
} > ram
|
||||
.stab . (NOLOAD) :
|
||||
|
||||
@@ -257,6 +257,10 @@ SECTIONS {
|
||||
} > REGION_DATA AT > REGION_DATA
|
||||
bsp_section_bss_size = bsp_section_bss_end - bsp_section_bss_begin;
|
||||
|
||||
.rtemsstack (NOLOAD) : ALIGN_WITH_INPUT {
|
||||
*(SORT(.rtemsstack.*))
|
||||
} > REGION_DATA AT > REGION_DATA
|
||||
|
||||
.work : ALIGN_WITH_INPUT {
|
||||
/*
|
||||
* The work section will occupy the remaining REGION_DATA region and
|
||||
|
||||
@@ -196,6 +196,10 @@ SECTIONS
|
||||
. = ALIGN (16);
|
||||
PROVIDE (end = .);
|
||||
_clear_end = .;
|
||||
} >ram
|
||||
|
||||
.rtemsstack (NOLOAD) : {
|
||||
*(SORT(.rtemsstack.*))
|
||||
WorkAreaBase = .;
|
||||
} >ram
|
||||
|
||||
|
||||
Reference in New Issue
Block a user