-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathapp.ld
63 lines (53 loc) · 1.64 KB
/
app.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
61
62
63
/* Define memory regions. */
MEMORY
{
rom (rx) : ORIGIN = 0x08008000, LENGTH = 160K
ram (rwx) : ORIGIN = 0x20000000, LENGTH = 40K
}
_estack = ORIGIN(ram)+LENGTH(ram)-0x600;
/* 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 0x08000100 (NOLOAD) : { *(.bios) } */
.bios 0x08000100 (NOLOAD) : { bios.o }
.text : {
_vectors = .;
*(.isr_vectors) /* Vector table */
*(.text*) /* Program code */
*(.rodata*) /* Read only data */
. = ALIGN(4);
_etext = .;
_sidata = _etext;
} >rom
. = 0x20000000; /* From 0x20000000 */
.data : {
_sdata = . ;
*(.data) /* Data memory */
_edata = .;
} >ram AT >rom
.bss : {
_sbss = .;
*(.bss) /* Zero-filled run time allocate data memory */
_ebss = .;
} >ram AT >rom
}
/*========== end of file ==========*/