diff options
Diffstat (limited to 'lib/chibios/os/common/startup/ARMCMx/compilers/GCC/ld/rules_data.ld')
-rw-r--r-- | lib/chibios/os/common/startup/ARMCMx/compilers/GCC/ld/rules_data.ld | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/lib/chibios/os/common/startup/ARMCMx/compilers/GCC/ld/rules_data.ld b/lib/chibios/os/common/startup/ARMCMx/compilers/GCC/ld/rules_data.ld new file mode 100644 index 000000000..b0629e780 --- /dev/null +++ b/lib/chibios/os/common/startup/ARMCMx/compilers/GCC/ld/rules_data.ld | |||
@@ -0,0 +1,43 @@ | |||
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 | .data : ALIGN(4) | ||
20 | { | ||
21 | PROVIDE(_textdata = LOADADDR(.data)); | ||
22 | PROVIDE(_data = .); | ||
23 | __textdata_base__ = LOADADDR(.data); | ||
24 | __data_base__ = .; | ||
25 | *(.data) | ||
26 | *(.data.*) | ||
27 | *(.ramtext) | ||
28 | . = ALIGN(4); | ||
29 | PROVIDE(_edata = .); | ||
30 | __data_end__ = .; | ||
31 | } > DATA_RAM AT > DATA_RAM_LMA | ||
32 | |||
33 | .bss (NOLOAD) : ALIGN(4) | ||
34 | { | ||
35 | __bss_base__ = .; | ||
36 | *(.bss) | ||
37 | *(.bss.*) | ||
38 | *(COMMON) | ||
39 | . = ALIGN(4); | ||
40 | __bss_end__ = .; | ||
41 | PROVIDE(end = .); | ||
42 | } > BSS_RAM | ||
43 | } | ||