forked from OnTheWayJohn/ble_lt_sdk
-
Notifications
You must be signed in to change notification settings - Fork 0
/
boot-data-mv-fwd.link
58 lines (55 loc) · 1.27 KB
/
boot-data-mv-fwd.link
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
/* to tell the linker the program begin from __start label in cstartup.s, thus do not treat it as a unused symbol */
ENTRY(__start)
SECTIONS
{
. = 0x0;
.vectors :
{
*(.vectors)
*(.vectors.*) /* MUST as follows, when compile with -ffunction-sections -fdata-sections, session name may changed */
}
.ram_code :
{
*(.ram_code)
*(.ram_code.*)
}
. = (((. + 3) / 4)*4);
PROVIDE(_dstored_ = .);
. = . + 0x808000 ;
.data :
AT ( _dstored_ )
{
. = (((. + 3) / 4)*4);
PROVIDE(_start_data_ = . );
*(.data);
*(.data.*);
PROVIDE(_end_data_ = . );
PROVIDE(_end_data16_ = (. - 0x808000 + 15));
}
. = . - 0x808000 ;
PROVIDE(_ramcode_size_ = . );
. = (((. + 3) / 4)*4);
.text :
{
*(.text)
*(.text.*)
}
.rodata :
{
*(.rodata)
*(.rodata.*)
}
PROVIDE(_bss_dstored_ = .);
. = . + 0x808000 ;
.bss :
AT ( _bss_dstored_ )
{
. = (((. + 3) / 4)*4);
PROVIDE(_start_bss_ = .);
*(.sbss)
*(.sbss.*)
*(.bss)
*(.bss.*)
}
PROVIDE(_end_bss_ = .);
}