Last change
on this file since 96 was
88,
checked in by rosiere, 16 years ago
|
Almost complete design
with Test and test platform
|
-
Property svn:keywords set to
Id
|
File size:
1.3 KB
|
Line | |
---|
1 | ENTRY(_start) |
---|
2 | OUTPUT_ARCH(or32) |
---|
3 | /* |
---|
4 | __DYNAMIC = 0; |
---|
5 | */ |
---|
6 | |
---|
7 | /* |
---|
8 | * Memory Mapping |
---|
9 | */ |
---|
10 | |
---|
11 | MEMORY |
---|
12 | { |
---|
13 | iram : ORIGIN = 0x00000000, LENGTH = 0x01000000 |
---|
14 | dram : ORIGIN = 0x10000000, LENGTH = 0x10000000 |
---|
15 | dram_unc : ORIGIN = 0x40000000, LENGTH = 0x01000000 |
---|
16 | } |
---|
17 | |
---|
18 | /* |
---|
19 | * Allocate the stack to be at the top of memory, since the stack |
---|
20 | * grows down. |
---|
21 | */ |
---|
22 | PROVIDE (_stack = 0x52000000 - 4); |
---|
23 | PROVIDE (__stack = 0x52000000 - 4); |
---|
24 | PROVIDE (_stack_alloc = 0x00500000 ); |
---|
25 | PROVIDE (_tty = 0xa0000000 ); |
---|
26 | |
---|
27 | SECTIONS |
---|
28 | { |
---|
29 | /* |
---|
30 | * Code |
---|
31 | */ |
---|
32 | |
---|
33 | .text : |
---|
34 | { |
---|
35 | *(.text) |
---|
36 | } > iram |
---|
37 | |
---|
38 | /* |
---|
39 | * Data |
---|
40 | */ |
---|
41 | |
---|
42 | .rodata : |
---|
43 | { |
---|
44 | *(.rodata); |
---|
45 | *(.rodata.*); |
---|
46 | } > dram |
---|
47 | |
---|
48 | .data : |
---|
49 | { |
---|
50 | sdata = .; |
---|
51 | _sdata = .; |
---|
52 | *(.data) |
---|
53 | edata = .; |
---|
54 | _edata = .; |
---|
55 | } > dram |
---|
56 | .bss SIZEOF(.data) + ADDR(.data) : |
---|
57 | { |
---|
58 | sbss = . ; |
---|
59 | _sbss = . ; |
---|
60 | __bss_start = ALIGN(0x8); |
---|
61 | ___bss_start = ALIGN(0x8); |
---|
62 | *(.bss) |
---|
63 | *(COMMON) |
---|
64 | end = ALIGN(0x8); |
---|
65 | _end = ALIGN(0x8); |
---|
66 | __end = ALIGN(0x8); |
---|
67 | ebss = .; |
---|
68 | _ebss = .; |
---|
69 | } |
---|
70 | /* |
---|
71 | .stab 0 (NOLOAD) : |
---|
72 | { |
---|
73 | [ .stab ] |
---|
74 | } |
---|
75 | |
---|
76 | .stabstr 0 (NOLOAD) : |
---|
77 | { |
---|
78 | [ .stabstr ] |
---|
79 | } |
---|
80 | */ |
---|
81 | |
---|
82 | |
---|
83 | /* |
---|
84 | * Suppression de la section comment |
---|
85 | */ |
---|
86 | |
---|
87 | /DISCARD/ : |
---|
88 | { |
---|
89 | *(.comment) |
---|
90 | *(.gnu.*) |
---|
91 | *(.stab*) |
---|
92 | } |
---|
93 | } |
---|
94 | |
---|
Note: See
TracBrowser
for help on using the repository browser.