forked from jelinj8/dso203
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.lds
100 lines (76 loc) · 2.57 KB
/
main.lds
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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
/* stack pointer should point to the address ABOVE the available RAM */
_estack = ORIGIN(ram)+LENGTH(ram);
/*_estack = ORIGIN(ram)+LENGTH(ram)-0x2000;*/
/* Linker script for Olimex STM32-H103 eval board.
*
* Version: 0.1
*
* Copyright 2007 CodeSourcery.
*
* The authors hereby grant permission to use, copy, modify, distribute,
* and license this software and its documentation for any purpose, provided
* that existing copyright notices are retained in all copies and that this
* notice is included verbatim in any distributions. No written agreement,
* license, or royalty fee is required for any of the authorized uses.
* Modifications to this software may be copyrighted by their authors
* and need not follow the licensing terms described here, provided that
* the new terms are clearly indicated on the first page of each file where
* they apply.
*
* Modified by Olimex
* 2009-04-07: Modified by Piotr Esden-Tempski <[email protected]>
*/
SECTIONS
{
. = 0x0; /* From 0x00000000 */
.bios 0x08004200 (NOLOAD) : {
BIOS.o
}
.isr_vector : {
_vectors = .;
*(.isr_vectors) /* Vector table */
. = ALIGN(4);
/* startup.o(.text) */
*(.text.startup)
stm32f10x_nvic.o(.text)
cortexm3_macro.o(.text)
/* Main.o(.text) */
/* Files.o(.text) */
Function.o(.text)
Calibrat.o(.text)
Interrupt.o(.text)
/* Draw.o(.text) */
/* Process.o(.text)*/
*(.rodata*) /* Read only data */
} >rom
.spare : { /*Undocumented area*/
. = ALIGN(4);
startup.o(.text)
Draw.o(.text)
/* Interrupt.o(.text) */
Main.o(.text)
Menu.o(.text)
} >spare
.extra : { /*Undocumented area*/
. = ALIGN(4);
*(.text*) /*Program code */
} >extra
.text : {
. = ALIGN(4);
_etext = .;
_sidata = _etext;
} >rom
.data : AT ( _sidata ) {
_sdata = . ;
*(.data*) /* Data memory */
. = ALIGN(4);
_edata = .;
} >ram
.bss (NOLOAD) : {
_sbss = .;
*(.bss) /* Zero-filled run time allocate data memory */
. = ALIGN(4);
_ebss = .;
} >ram AT > rom
}
/*========== end of file ==========*/