mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2026-09-27 18:54:20 +08:00
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:
@@ -194,11 +194,12 @@ SECTIONS
|
||||
_clear_end = .;
|
||||
end = .;
|
||||
_end = .;
|
||||
. = ALIGN (1024);
|
||||
WorkAreaBase = .;
|
||||
|
||||
} >ram
|
||||
} >ram
|
||||
|
||||
.rtemsstack (NOLOAD) : {
|
||||
*(SORT(.rtemsstack.*))
|
||||
WorkAreaBase = .;
|
||||
} >ram
|
||||
|
||||
/*
|
||||
** DWARF debug sections.
|
||||
|
||||
@@ -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. */
|
||||
|
||||
@@ -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 = .;
|
||||
|
||||
@@ -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 = .;
|
||||
|
||||
@@ -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. */
|
||||
|
||||
@@ -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. */
|
||||
|
||||
Reference in New Issue
Block a user