-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnRF52833_ls.ld
60 lines (53 loc) · 1.46 KB
/
nRF52833_ls.ld
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
ENTRY(Reset_Handler)
MEMORY
{
FLASH(rx): ORIGIN =0x00000000, LENGTH =512K
SRAM(rwx): ORIGIN =0x20000000, LENGTH =128K
}
SECTIONS
{
.text :
{
*(.isr_vector)
*(.text) /* (.text) says merge all .text sections of all input files */
*(.text.*) /* combine all .text sections under the main .text section */
*(.init) /* put .init section under .text */
*(.fini) /* put .fini section under .text */
*(.rodata)
*(.rodata.*)
/*__exidx_start = .;*/
/* .ARM.exidx : { *(.ARM.exidx*) }*/
/*__exidx_end = .;*/
. = ALIGN(4);
_etext = .; /* Store the updated location counter '.' value in a symbol called '_etext' */
}> FLASH /* This line tells the linker where to put .text section */
_la_data = LOADADDR(.data);
.data :
{
_sdata = .; /* Assign a value to symbol '_sdata' */
*(.data)
*(.data.*)
. = ALIGN(4);
_edata = .;
}> SRAM AT> FLASH
.bss :
{
_sbss = .;
__bss_start__ = _sbss; /* __bss_start__ was added because using nano.spec requires it */
*(.bss)
*(.bss.*)
*(COMMON)
. = ALIGN(4);
_ebss = .;
__bss_end__ = _ebss; /* __bss_end__ was added because using nano.spec requires it */
. = ALIGN(4);
end = .; /* required by syscalls.c to locate the start of heap */
__end__ = .; /* required when using semihosting */
}> SRAM
__exidx_start = .;
.ARM.exidx :
{
*(.ARM.exodx*)
}
__exidx_end = .;
}