diff options
Diffstat (limited to 'lib/chibios-contrib/os/common/startup/RISCV-ECLIC/compilers/GCC/ld/rules_data.ld')
-rw-r--r-- | lib/chibios-contrib/os/common/startup/RISCV-ECLIC/compilers/GCC/ld/rules_data.ld | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/lib/chibios-contrib/os/common/startup/RISCV-ECLIC/compilers/GCC/ld/rules_data.ld b/lib/chibios-contrib/os/common/startup/RISCV-ECLIC/compilers/GCC/ld/rules_data.ld new file mode 100644 index 000000000..a8f4b382f --- /dev/null +++ b/lib/chibios-contrib/os/common/startup/RISCV-ECLIC/compilers/GCC/ld/rules_data.ld | |||
@@ -0,0 +1,49 @@ | |||
1 | /* | ||
2 | ChibiOS - Copyright (C) 2020 Patrick Seidel | ||
3 | ChibiOS - Copyright (C) 2021 Stefan Kerkmann | ||
4 | |||
5 | Licensed under the Apache License, Version 2.0 (the "License"); | ||
6 | you may not use this file except in compliance with the License. | ||
7 | You may obtain a copy of the License at | ||
8 | |||
9 | http://www.apache.org/licenses/LICENSE-2.0 | ||
10 | |||
11 | Unless required by applicable law or agreed to in writing, software | ||
12 | distributed under the License is distributed on an "AS IS" BASIS, | ||
13 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
14 | See the License for the specific language governing permissions and | ||
15 | limitations under the License. | ||
16 | */ | ||
17 | |||
18 | SECTIONS | ||
19 | { | ||
20 | .data : ALIGN(4) | ||
21 | { | ||
22 | PROVIDE(_textdata = LOADADDR(.data)); | ||
23 | PROVIDE(_data = .); | ||
24 | __textdata_base__ = LOADADDR(.data); | ||
25 | __data_base__ = .; | ||
26 | *(.data .data.*) | ||
27 | *(.gnu.linkonce.d.*) | ||
28 | . = ALIGN(8); | ||
29 | PROVIDE( __global_pointer$ = . + 0x800 ); | ||
30 | *(.sdata .sdata.* .sdata*) | ||
31 | *(.ramtext) | ||
32 | *(.gnu.linkonce.s.*) | ||
33 | PROVIDE(_edata = .); | ||
34 | __data_end__ = .; | ||
35 | } > DATA_RAM AT > DATA_RAM_LMA | ||
36 | |||
37 | .bss (NOLOAD) : ALIGN(4) | ||
38 | { | ||
39 | __bss_base__ = .; | ||
40 | *(.sbss) | ||
41 | *(.sbss.*) | ||
42 | *(.bss) | ||
43 | *(.bss.*) | ||
44 | *(COMMON) | ||
45 | . = ALIGN(4); | ||
46 | __bss_end__ = .; | ||
47 | PROVIDE(end = .); | ||
48 | } > BSS_RAM | ||
49 | } | ||