diff options
Diffstat (limited to 'lib/chibios-contrib/os/common/startup/ARMCMx/compilers/GCC/ld/HT32F5234x.ld')
-rw-r--r-- | lib/chibios-contrib/os/common/startup/ARMCMx/compilers/GCC/ld/HT32F5234x.ld | 93 |
1 files changed, 93 insertions, 0 deletions
diff --git a/lib/chibios-contrib/os/common/startup/ARMCMx/compilers/GCC/ld/HT32F5234x.ld b/lib/chibios-contrib/os/common/startup/ARMCMx/compilers/GCC/ld/HT32F5234x.ld new file mode 100644 index 000000000..574a05ae2 --- /dev/null +++ b/lib/chibios-contrib/os/common/startup/ARMCMx/compilers/GCC/ld/HT32F5234x.ld | |||
@@ -0,0 +1,93 @@ | |||
1 | /* | ||
2 | * Copyright (C) Yaotian Feng, http://github.com/Codetector1374 | ||
3 | * [email protected] | ||
4 | * | ||
5 | * Permission is hereby granted, free of charge, to any person obtaining | ||
6 | * a copy of this software and associated documentation files (the "Software"), | ||
7 | * to deal in the Software without restriction, including without limitation | ||
8 | * the rights to use, copy, modify, merge, publish, distribute, sublicense, | ||
9 | * and/or sell copies of the Software, and to permit persons to whom the | ||
10 | * Software is furnished to do so, subject to the following conditions: | ||
11 | * | ||
12 | * The above copyright notice and this permission notice shall be included in | ||
13 | * all copies or substantial portions of the Software. | ||
14 | * | ||
15 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS | ||
16 | * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
17 | * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
18 | * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
19 | * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
20 | * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||
21 | * SOFTWARE. | ||
22 | */ | ||
23 | |||
24 | |||
25 | /* | ||
26 | * HT32F5234x memory setup | ||
27 | */ | ||
28 | |||
29 | MEMORY { | ||
30 | flash0 : org = 0x00000000, len = 64k | ||
31 | flash1 : org = 0x00000000, len = 0 | ||
32 | flash2 : org = 0x00000000, len = 0 | ||
33 | flash3 : org = 0x00000000, len = 0 | ||
34 | flash4 : org = 0x00000000, len = 0 | ||
35 | flash5 : org = 0x00000000, len = 0 | ||
36 | flash6 : org = 0x00000000, len = 0 | ||
37 | flash7 : org = 0x00000000, len = 0 | ||
38 | ram0 : org = 0x20000000, len = 8k | ||
39 | ram1 : org = 0x00000000, len = 0 | ||
40 | ram2 : org = 0x00000000, len = 0 | ||
41 | ram3 : org = 0x00000000, len = 0 | ||
42 | ram4 : org = 0x00000000, len = 0 | ||
43 | ram5 : org = 0x00000000, len = 0 | ||
44 | ram6 : org = 0x00000000, len = 0 | ||
45 | ram7 : org = 0x00000000, len = 0 | ||
46 | } | ||
47 | |||
48 | /* For each data/text section two region are defined, a virtual region | ||
49 | and a load region (_LMA suffix).*/ | ||
50 | |||
51 | /* Flash region to be used for exception vectors.*/ | ||
52 | REGION_ALIAS("VECTORS_FLASH", flash0); | ||
53 | REGION_ALIAS("VECTORS_FLASH_LMA", flash0); | ||
54 | |||
55 | /* Flash region to be used for constructors and destructors.*/ | ||
56 | REGION_ALIAS("XTORS_FLASH", flash0); | ||
57 | REGION_ALIAS("XTORS_FLASH_LMA", flash0); | ||
58 | |||
59 | /* Flash region to be used for code text.*/ | ||
60 | REGION_ALIAS("TEXT_FLASH", flash0); | ||
61 | REGION_ALIAS("TEXT_FLASH_LMA", flash0); | ||
62 | |||
63 | /* Flash region to be used for read only data.*/ | ||
64 | REGION_ALIAS("RODATA_FLASH", flash0); | ||
65 | REGION_ALIAS("RODATA_FLASH_LMA", flash0); | ||
66 | |||
67 | /* Flash region to be used for various.*/ | ||
68 | REGION_ALIAS("VARIOUS_FLASH", flash0); | ||
69 | REGION_ALIAS("VARIOUS_FLASH_LMA", flash0); | ||
70 | |||
71 | /* Flash region to be used for RAM(n) initialization data.*/ | ||
72 | REGION_ALIAS("RAM_INIT_FLASH_LMA", flash0); | ||
73 | |||
74 | /* RAM region to be used for Main stack. This stack accommodates the processing | ||
75 | of all exceptions and interrupts.*/ | ||
76 | REGION_ALIAS("MAIN_STACK_RAM", ram0); | ||
77 | |||
78 | /* RAM region to be used for the process stack. This is the stack used by | ||
79 | the main() function.*/ | ||
80 | REGION_ALIAS("PROCESS_STACK_RAM", ram0); | ||
81 | |||
82 | /* RAM region to be used for data segment.*/ | ||
83 | REGION_ALIAS("DATA_RAM", ram0); | ||
84 | REGION_ALIAS("DATA_RAM_LMA", flash0); | ||
85 | |||
86 | /* RAM region to be used for BSS segment.*/ | ||
87 | REGION_ALIAS("BSS_RAM", ram0); | ||
88 | |||
89 | /* RAM region to be used for the default heap.*/ | ||
90 | REGION_ALIAS("HEAP_RAM", ram0); | ||
91 | |||
92 | /* Generic rules inclusion.*/ | ||
93 | INCLUDE rules.ld \ No newline at end of file | ||