diff options
Diffstat (limited to 'lib/chibios/os/common/startup/ARMCMx/compilers/GCC/ld/rules_stacks.ld')
-rw-r--r-- | lib/chibios/os/common/startup/ARMCMx/compilers/GCC/ld/rules_stacks.ld | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/lib/chibios/os/common/startup/ARMCMx/compilers/GCC/ld/rules_stacks.ld b/lib/chibios/os/common/startup/ARMCMx/compilers/GCC/ld/rules_stacks.ld new file mode 100644 index 000000000..837478e1e --- /dev/null +++ b/lib/chibios/os/common/startup/ARMCMx/compilers/GCC/ld/rules_stacks.ld | |||
@@ -0,0 +1,40 @@ | |||
1 | /* | ||
2 | ChibiOS - Copyright (C) 2006..2018 Giovanni Di Sirio | ||
3 | |||
4 | Licensed under the Apache License, Version 2.0 (the "License"); | ||
5 | you may not use this file except in compliance with the License. | ||
6 | You may obtain a copy of the License at | ||
7 | |||
8 | http://www.apache.org/licenses/LICENSE-2.0 | ||
9 | |||
10 | Unless required by applicable law or agreed to in writing, software | ||
11 | distributed under the License is distributed on an "AS IS" BASIS, | ||
12 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
13 | See the License for the specific language governing permissions and | ||
14 | limitations under the License. | ||
15 | */ | ||
16 | |||
17 | SECTIONS | ||
18 | { | ||
19 | /* Special section for exceptions stack.*/ | ||
20 | .mstack (NOLOAD) : | ||
21 | { | ||
22 | . = ALIGN(8); | ||
23 | __main_stack_base__ = .; | ||
24 | . += __main_stack_size__; | ||
25 | . = ALIGN(8); | ||
26 | __main_stack_end__ = .; | ||
27 | } > MAIN_STACK_RAM | ||
28 | |||
29 | /* Special section for process stack.*/ | ||
30 | .pstack (NOLOAD) : | ||
31 | { | ||
32 | . = ALIGN(8); | ||
33 | __process_stack_base__ = .; | ||
34 | __main_thread_stack_base__ = .; | ||
35 | . += __process_stack_size__; | ||
36 | . = ALIGN(8); | ||
37 | __process_stack_end__ = .; | ||
38 | __main_thread_stack_end__ = .; | ||
39 | } > PROCESS_STACK_RAM | ||
40 | } | ||