diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2018-06-19 15:10:36 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2018-06-27 08:58:16 +0200 |
commit | 715d6167e07a46f5bc37f42993c209450484bbe8 (patch) | |
tree | a2b7b713ecfe5d6bbe80db74f79dfeba62e64a8b /bsps/lm32 | |
parent | c8df844cf3bddde0221614843c97cb6c950cdba9 (diff) |
bsps: Support .rtemsstack.* linker input sections
Use a dedicated memory region or place it between the BSS and workspace.
Update #3459.
Diffstat (limited to 'bsps/lm32')
-rw-r--r-- | bsps/lm32/lm32_evr/start/linkcmds | 6 | ||||
-rw-r--r-- | bsps/lm32/milkymist/start/linkcmds | 7 |
2 files changed, 8 insertions, 5 deletions
diff --git a/bsps/lm32/lm32_evr/start/linkcmds b/bsps/lm32/lm32_evr/start/linkcmds index 63747f33dc..d4b3147c63 100644 --- a/bsps/lm32/lm32_evr/start/linkcmds +++ b/bsps/lm32/lm32_evr/start/linkcmds @@ -252,14 +252,16 @@ SECTIONS . += _StackSize; _fstack = .; - WorkAreaBase = .; - . = ALIGN (16); _stack_init = .; _clear_end = .; } > sdram + .rtemsstack (NOLOAD) : { + *(SORT(.rtemsstack.*)) + WorkAreaBase = .; + } > sdram /DISCARD/ : { diff --git a/bsps/lm32/milkymist/start/linkcmds b/bsps/lm32/milkymist/start/linkcmds index 9c38414238..6a2721005a 100644 --- a/bsps/lm32/milkymist/start/linkcmds +++ b/bsps/lm32/milkymist/start/linkcmds @@ -251,14 +251,15 @@ SECTIONS . += _StackSize; _fstack = .; - WorkAreaBase = .; - . = ALIGN (16); _stack_init = .; _clear_end = .; - } > sdram + .rtemsstack (NOLOAD) : { + *(SORT(.rtemsstack.*)) + WorkAreaBase = .; + } > sdram /DISCARD/ : { |