Skip to content

Commit ad9b6a7

Browse files
committed
Merge branch 'master' of https://github.com/mbedmicro/mbed
2 parents ef626d7 + 914dd37 commit ad9b6a7

File tree

123 files changed

+26150
-89
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

123 files changed

+26150
-89
lines changed

libraries/mbed/targets/cmsis/TARGET_Freescale/TARGET_KLXX/TARGET_KL05Z/TOOLCHAIN_GCC_ARM/MKL05Z4.ld

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ MEMORY
66
{
77
VECTORS (rx) : ORIGIN = 0x00000000, LENGTH = 0x00000410
88
FLASH (rx) : ORIGIN = 0x00000410, LENGTH = 32K - 0x00000410
9-
RAM (rwx) : ORIGIN = 0x1FFFFC00, LENGTH = 4K - 0xC0
9+
RAM (rwx) : ORIGIN = 0x1FFFFCC0, LENGTH = 4K - 0xC0
1010
}
1111

1212
/* Linker script to place sections and symbol values. Should be used together
Lines changed: 199 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,199 @@
1+
/*Based on following file
2+
* (c) Code Red Technologies Ltd, 2008-13
3+
* (c) NXP Semiconductors 2013-2015
4+
* Generated linker script file for LPC824
5+
* Created from generic_c.ld (LPCXpresso v7.4 (0 [Build 229] [2014-09-16] ))
6+
* By LPCXpresso v7.4.0 [Build 229] [2014-09-16] on Fri Jan 02 03:36:48 JST 2015
7+
*/
8+
9+
/* Linker script to configure memory regions. */
10+
MEMORY
11+
{
12+
/* Define each memory region */
13+
MFlash32 (rx) : ORIGIN = 0x0, LENGTH = 0x8000 /* 32K bytes */
14+
RamLoc8 (rwx) : ORIGIN = 0x10000000+0xC0, LENGTH = 0x2000-0xC0 /* 8K bytes */
15+
16+
17+
}
18+
19+
/* Define a symbol for the top of each memory region */
20+
__top_MFlash32 = 0x0 + 0x8000;
21+
__top_RamLoc8 = 0x10000000 + 0x2000;
22+
23+
GROUP(libgcc.a libc.a libstdc++.a libm.a libcr_newlib_nohost.a crti.o crtn.o crtbegin.o crtend.o)
24+
/*GROUP(libcr_nohost.a libcr_c.a libcr_eabihelpers.a libm.a)*/
25+
/* Linker script to place sections and symbol values. Should be used together
26+
* with other linker script that defines memory regions FLASH and RAM.
27+
* It references following symbols, which must be defined in code:
28+
* Reset_Handler : Entry of reset handler
29+
*
30+
* It defines following symbols, which code can use without definition:
31+
* __exidx_start
32+
* __exidx_end
33+
* __etext
34+
* __data_start__
35+
* __preinit_array_start
36+
* __preinit_array_end
37+
* __init_array_start
38+
* __init_array_end
39+
* __fini_array_start
40+
* __fini_array_end
41+
* __data_end__
42+
* __bss_start__
43+
* __bss_end__
44+
* __end__
45+
* end
46+
* __HeapLimit
47+
* __StackLimit
48+
* __StackTop
49+
* __stack
50+
*/
51+
ENTRY(ResetISR)
52+
53+
SECTIONS
54+
{
55+
56+
/* MAIN TEXT SECTION */
57+
.text : ALIGN(4)
58+
{
59+
FILL(0xff)
60+
__vectors_start__ = ABSOLUTE(.) ;
61+
KEEP(*(.isr_vector))
62+
63+
/* Global Section Table */
64+
. = ALIGN(4) ;
65+
__section_table_start = .;
66+
__data_section_table = .;
67+
LONG(LOADADDR(.data));
68+
LONG( ADDR(.data));
69+
LONG( SIZEOF(.data));
70+
__data_section_table_end = .;
71+
__bss_section_table = .;
72+
LONG( ADDR(.bss));
73+
LONG( SIZEOF(.bss));
74+
__bss_section_table_end = .;
75+
__section_table_end = . ;
76+
/* End of Global Section Table */
77+
78+
79+
*(.after_vectors*)
80+
} >MFlash32
81+
82+
.text : ALIGN(4)
83+
{
84+
*(.text*)
85+
*(.rodata .rodata.* .constdata .constdata.*)
86+
. = ALIGN(4);
87+
88+
89+
/* C++ constructors etc */
90+
. = ALIGN(4);
91+
KEEP(*(.init))
92+
93+
. = ALIGN(4);
94+
__preinit_array_start = .;
95+
KEEP (*(.preinit_array))
96+
__preinit_array_end = .;
97+
98+
. = ALIGN(4);
99+
__init_array_start = .;
100+
KEEP (*(SORT(.init_array.*)))
101+
KEEP (*(.init_array))
102+
__init_array_end = .;
103+
104+
KEEP(*(.fini));
105+
106+
/* .ctors */
107+
*crtbegin.o(.ctors)
108+
*crtbegin?.o(.ctors)
109+
*(EXCLUDE_FILE(*crtend?.o *crtend.o) .ctors)
110+
*(SORT(.ctors.*))
111+
*(.ctors)
112+
113+
/* .dtors */
114+
*crtbegin.o(.dtors)
115+
*crtbegin?.o(.dtors)
116+
*(EXCLUDE_FILE(*crtend?.o *crtend.o) .dtors)
117+
*(SORT(.dtors.*))
118+
*(.dtors)
119+
120+
*(.rodata*)
121+
122+
KEEP(*(.eh_frame*))
123+
124+
125+
126+
} > MFlash32
127+
128+
/*
129+
* for exception handling/unwind - some Newlib functions (in common
130+
* with C++ and STDC++) use this.
131+
*/
132+
.ARM.extab : ALIGN(4)
133+
{
134+
*(.ARM.extab* .gnu.linkonce.armextab.*)
135+
} > MFlash32
136+
__exidx_start = .;
137+
138+
.ARM.exidx : ALIGN(4)
139+
{
140+
*(.ARM.exidx* .gnu.linkonce.armexidx.*)
141+
} > MFlash32
142+
__exidx_end = .;
143+
144+
_etext = .;
145+
146+
147+
/* MAIN DATA SECTION */
148+
149+
/* Default MTB section */
150+
.mtb_buffer_default (NOLOAD) :
151+
{
152+
KEEP(*(.mtb*))
153+
} > RamLoc8
154+
155+
.uninit_RESERVED : ALIGN(4)
156+
{
157+
KEEP(*(.bss.$RESERVED*))
158+
. = ALIGN(4) ;
159+
_end_uninit_RESERVED = .;
160+
} > RamLoc8
161+
162+
163+
/* Main DATA section (RamLoc8) */
164+
.data : ALIGN(4)
165+
{
166+
FILL(0xff)
167+
_data = . ;
168+
*(vtable)
169+
*(.ramfunc*)
170+
*(.data*)
171+
. = ALIGN(4) ;
172+
_edata = . ;
173+
} > RamLoc8 AT>MFlash32
174+
175+
176+
/* MAIN BSS SECTION */
177+
.bss : ALIGN(4)
178+
{
179+
_bss = .;
180+
*(.bss*)
181+
*(COMMON)
182+
. = ALIGN(4) ;
183+
_ebss = .;
184+
PROVIDE(end = .);
185+
} > RamLoc8
186+
187+
188+
/* DEFAULT NOINIT SECTION */
189+
.noinit (NOLOAD): ALIGN(4)
190+
{
191+
_noinit = .;
192+
*(.noinit*)
193+
. = ALIGN(4) ;
194+
_end_noinit = .;
195+
} > RamLoc8
196+
197+
PROVIDE(_pvHeapStart = DEFINED(__user_heap_base) ? __user_heap_base : .);
198+
PROVIDE(_vStackTop = DEFINED(__user_stack_top) ? __user_stack_top : __top_RamLoc8 - 0);
199+
}

0 commit comments

Comments
 (0)