repo.or.cz
/
kugel-rb.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Trim down peak calculation a bit.
[kugel-rb.git]
/
firmware
/
target
/
arm
/
as3525
/
boot.lds
blob
502e90c22b90d100f1fa643709d7bdbefd58a09f
1
#include "config.h"
2
#include "cpu.h"
3
4
ENTRY(start)
5
OUTPUT_FORMAT(elf32-littlearm)
6
OUTPUT_ARCH(arm)
7
STARTUP(target/arm/crt0.o)
8
9
#ifdef SANSA_CLIPV2
10
#define RAMORIG 0x0 /* DRAM */
11
#define RAMSIZE (MEM*0x100000)
12
#else
13
#define RAMORIG 0x81000000 /* IRAM */
14
#define RAMSIZE 0x50000
15
#endif
16
17
MEMORY
18
{
19
RAM : ORIGIN = RAMORIG, LENGTH = RAMSIZE
20
}
21
22
SECTIONS
23
{
24
. = RAMORIG;
25
26
.text : {
27
*(.init.text)
28
*(.glue_7)
29
*(.glue_7t)
30
*(.text*)
31
} > RAM
32
33
.data : {
34
*(.icode)
35
*(.irodata)
36
*(.idata)
37
*(.data*)
38
*(.ncdata*)
39
*(.rodata*)
40
_dataend = . ;
41
} > RAM
42
43
.stack (NOLOAD) :
44
{
45
*(.stack)
46
_stackbegin = .;
47
stackbegin = .;
48
. += 0x2000;
49
_stackend = .;
50
stackend = .;
51
} > RAM
52
53
.bss (NOLOAD) : {
54
_edata = .;
55
*(.bss*);
56
*(.ibss);
57
*(COMMON)
58
*(.ncbss*);
59
_end = .;
60
} > RAM
61
}