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:
Sebastian Huber
2018-06-27 08:58:16 +02:00
parent c8df844cf3
commit 715d6167e0
78 changed files with 266 additions and 77 deletions
+5 -4
View File
@@ -194,11 +194,12 @@ SECTIONS
_clear_end = .;
end = .;
_end = .;
. = ALIGN (1024);
WorkAreaBase = .;
} >ram
} >ram
.rtemsstack (NOLOAD) : {
*(SORT(.rtemsstack.*))
WorkAreaBase = .;
} >ram
/*
** DWARF debug sections.
+4 -1
View File
@@ -172,9 +172,12 @@ SECTIONS
_stack_init = .;
end = .;
_end = .;
WorkAreaBase = .;
}
.rtemsstack (NOLOAD) : {
*(SORT(.rtemsstack.*))
WorkAreaBase = .;
}
/* Debug sections. These should never be loadable, but they must have
zero addresses for the debuggers to work correctly. */
+6 -1
View File
@@ -168,9 +168,14 @@ SECTIONS
. += _StackSize;
__stack = .;
_stack_init = .;
WorkAreaBase = .;
_clear_end = .;
}
.rtemsstack (NOLOAD) : {
*(SORT(.rtemsstack.*))
WorkAreaBase = .;
}
. = 0x88400000; /* reserve some memory for Work Area */
end = .;
_end = .;
+6 -1
View File
@@ -169,9 +169,14 @@ SECTIONS
. += _StackSize;
__stack = .;
_stack_init = .;
WorkAreaBase = .;
_clear_end = .;
}
.rtemsstack (NOLOAD) : {
*(SORT(.rtemsstack.*))
WorkAreaBase = .;
}
. = 0x88400000; /* reserve some memory for Work Area */
end = .;
_end = .;
+4 -1
View File
@@ -172,9 +172,12 @@ SECTIONS
_stack_init = .;
end = .;
_end = .;
WorkAreaBase = .;
}
.rtemsstack (NOLOAD) : {
*(SORT(.rtemsstack.*))
WorkAreaBase = .;
}
/* Debug sections. These should never be loadable, but they must have
zero addresses for the debuggers to work correctly. */
+4 -1
View File
@@ -172,9 +172,12 @@ SECTIONS
_stack_init = .;
end = .;
_end = .;
WorkAreaBase = .;
}
.rtemsstack (NOLOAD) : {
*(SORT(.rtemsstack.*))
WorkAreaBase = .;
}
/* Debug sections. These should never be loadable, but they must have
zero addresses for the debuggers to work correctly. */