source: anotherchoice/tags/jsp-1.4.4-full-UTF8/config/mips3/vr5500/vr5500_elf.ld@ 26

Last change on this file since 26 was 26, checked in by ykominami, 12 years ago

initial

File size: 1.9 KB
RevLine 
[26]1OUTPUT_FORMAT("elf32-littlemips","elf32-littlemips","elf32-littlemips")
2OUTPUT_ARCH(mips)
3
4MEMORY
5{
6 ROM0(rxai):ORIGIN = 0xbfc00000, LENGTH = 0x700 /* kseg0 */
7 ROM1(rxai):ORIGIN = 0x9fc00700, LENGTH = 1M-0x700 /* kseg1 */
8/* ROM1(rxai):ORIGIN = 0xbfc00700, LENGTH = 1M-0x700*/ /* kseg0 */
9 RAM (wxai):ORIGIN = 0xa8000000, LENGTH = 64M /* kseg0 */
10 /* SDRAM の最初から取っていないのは、最初の2MB分は
11 ROM のミラー用に確保するため */
12}
13
14PROVIDE(_stack_top = 0);
15PROVIDE(hardware_init_hook = 0);
16PROVIDE(software_init_hook = 0);
17PROVIDE(software_term_hook = 0);
18
19SECTIONS
20{
21 _stack_top = 0xabfffffc; /* = 0xac000000 - 0x4 (DRAM) ; kseg0 */
22
23 .exce_vec_map :
24 {
25 *(.exce_vec_map)
26 } > ROM0
27
28 .reset 0xbfc00400 : /* キャッシュ初期化などを含む */
29 {
30 *(.reset)
31 } > ROM0
32
33 .text :
34 {
35 _stext = . ;
36 *(.text)
37 _etext = . ;
38 } > ROM1
39
40 .rodata :
41 {
42 *(.rodata)
43 } > ROM1
44
45 __idata_start = .;
46 .data : AT ( __idata_start )
47 {
48 __data_start = . ;
49 *(.data)
50 } > RAM
51
52 /* 理由は良く分からないけれども、こう書くのが一般的らしい。 */
53 _gp = . + 0x8000;
54
55 /* sdata セクションは chk で引っかかるので、保留。
56 コンパイル時に、-G 0 オプションで避けています。 */
57
58 __isdata_start = .;
59 .sdata : AT ( __isdata_start + SIZEOF(.data) )
60 {
61 *(.lit8)
62 *(.lit4)
63 *(.sdata)
64 } > RAM
65 __idata_end = __idata_start + SIZEOF(.data) + SIZEOF(.sdata);
66
67 __bss_start = . ;
68
69 .sbss :
70 {
71 _fbss = . ;
72 *(.sbss)
73 *(.scommon)
74 } > RAM
75
76 .bss :
77 {
78 *(.bss)
79 *(COMMON)
80 __bss_end = .;
81 _end = . ;
82 } > RAM
83
84 PROVIDE (end = .);
85
86 .comment 0 : { *(.comment) }
87 .debug 0 : { *(.debug) }
88 .line 0 : { *(.line) }
89 .debug_srcinfo 0 : { *(.debug_srcinfo) }
90 .debug_sfnames 0 : { *(.debug_sfnames) }
91 .debug_aranges 0 : { *(.debug_aranges) }
92 .debug_pubnames 0 : { *(.debug_pubnames) }
93}
94
95PROVIDE(memcpy = _dummy_memcpy);
Note: See TracBrowser for help on using the repository browser.