FS#8961 - Anti-Aliased Fonts.
[kugel-rb.git] / firmware / target / mips / ingenic_jz47xx / boot.lds
blob15d3e3dd475676fd1e21f3b36bc249a92faacce6
1 #include "config.h"
2 #undef mips
4 OUTPUT_FORMAT("elf32-littlemips")
5 OUTPUT_ARCH(MIPS)
6 ENTRY(_start)
7 STARTUP(target/mips/ingenic_jz47xx/crt0.o)
9 #define DRAMSIZE ((MEMORYSIZE-4) * 0x100000)
11 #define DRAMORIG 0x80E04000
12 #define IRAMORIG 0x80000000
13 #define IRAMSIZE 16K
15 MEMORY
17    DRAM : ORIGIN = DRAMORIG, LENGTH = DRAMSIZE
18    IRAM : ORIGIN = IRAMORIG, LENGTH = IRAMSIZE
21 SECTIONS
23     . = DRAMORIG;
25     .text :
26     {
27         _loadaddress = .;
28         *(.init.text);
29         *(.text*);
30     } > DRAM
32     . = ALIGN(4);
34     .rodata :
35     {
36         *(.rodata*);
37     } > DRAM
39     . = ALIGN(4);
41     .data :
42     {
43         *(.data*);
44         *(.sdata*);
45         *(.rel.dyn);
46     } > DRAM
48     . = ALIGN(4);
50     .iram IRAMORIG:
51     {
52         _iramstart = .;
53         *(.vectors.1);
54         . = 0x100;
55         *(.vectors.2);
56         . = 0x180;
57         *(.vectors.3);
58         . = 0x200;
59         *(.vectors.4);
60         *(.vectors);
62         *(.icode);
63         *(.irodata);
64         *(.idata);
65         KEEP(*(.vectors*))
66         _iramend = .;
67     } > IRAM AT> DRAM
68     _iramcopy = LOADADDR(.iram);
70     . = ALIGN(4);
72     .bss (NOLOAD):
73     {
74          _edata = .;
75          *(.sbss*);
76          *(.bss*);
77          *(.ibss*);
78          *(COMMON);
79          *(.scommon*);
80          _end = .;
81     } > DRAM
83     _bootend = .;
85     .stack (NOLOAD):
86     {
87          *(.stack)
88          stackbegin = .;
89          . += 0x2000;
90          stackend = .;
91     } > IRAM