Debian Codegraph @

src/analyzer/linker_script.ld

raw
1 /*
2 mbed CMSIS-DAP debugger
3 Copyright (c) 2006-2015 ARM Limited
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 /* Memory regions */
19 MEMORY
20 {
21 /* Ram configurations are for smallest KL25 in family - 4K */
22 m_all (rwx) : ORIGIN = 0x00000000, LENGTH = 0x600
23 }
24
25 /* Define output sections */
26 SECTIONS
27 {
28
29 .text :
30 {
31 . = ALIGN(4);
32
33 /* Entry point */
34 KEEP(*(.text.compute_crc))
35
36 *(.text) /* .text sections (code) */
37 *(.text*) /* .text* sections (code) */
38
39 . = ALIGN(4);
40 *(.rodata) /* .rodata sections (constants, strings, etc.) */
41 *(.rodata*) /* .rodata* sections (constants, strings, etc.) */
42
43 } >m_all
44
45 .data :
46 {
47 . = ALIGN(4);
48 *(.data) /* .data sections */
49 *(.data*) /* .data* sections */
50 } >m_all
51
52 /* Uninitialized data section */
53 .bss :
54 {
55 . = ALIGN(4);
56 *(.bss)
57 *(.bss*)
58 *(COMMON)
59 } > m_all
60
61 }