-
Notifications
You must be signed in to change notification settings - Fork 83
/
Copy pathapp.lds
executable file
·46 lines (37 loc) · 969 Bytes
/
app.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
/*
08008000..08014c60
20000000..20004534
08008000..08030000 allrom
20000000..2000a000 allram
*/
MEMORY
{
/*
rom (rx) : ORIGIN = 0x08015000, LENGTH = 20K
ram (rwx) : ORIGIN = 0x20005000, LENGTH = 6K
null (rwx): ORIGIN = 0x00001000, LENGTH = 4K
*/
rom (rx) : ORIGIN = 0x08040300, LENGTH = 32K
ram (rwx) : ORIGIN = 0x20005000, LENGTH = 10K
null (rwx) : ORIGIN = 0xf0000000, LENGTH = 4K
}
/* _estack = ORIGIN(ram)+LENGTH(ram)-0x100; */
SECTIONS
{
.text : {
*(.entry)
*(.text*) /* Program code */
*(.rodata*) /* Read only data */
} >rom
.data : {
*(.data*) /* Data memory */
} >ram
.bss : {
*(.bss*) /* Zero-filled run time allocate data memory */
} >ram
.rel.plt : { *(.rel.plt) } > rom
.plt : { *(.plt) } > rom
.got : { *(.got.plt) *(.got) } > ram /* relocation fixed by memory write! */
.dynsym : { *(.dynsym) } > null
.dynstr : { *(.dynstr) } > null
}