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