source: anotherchoice/tags/jsp-1.4.4-full-UTF8/config/microblaze/mbelf_rom.l@ 26

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

initial

File size: 2.5 KB
Line 
1/*
2 * @(#) $Id: mbelf_rom.l,v 1.1 2004/01/09 10:32:36 honda Exp $
3 */
4
5PROVIDE(_hardware_init_hook = 0);
6PROVIDE(_software_init_hook = 0);
7PROVIDE(software_term_hook = 0);
8/*
9 * Specify the default entry point to the program
10 */
11ENTRY(_start)
12
13SECTIONS
14{
15/*
16 * Specify that the .text section from all input object files will be placed
17 * in LMB memory into the output file section .text Note that mb-gdb expects
18 * the executable to have a section called .text
19 */
20
21 .text : {
22 /* Uncomment the following line to add specific files in the opb_text */
23 /* region */
24 /* *(EXCLUDE_FILE(file1.o).text) */
25 /* Comment out the following line to have multiple text sections */
26 __text = . ;
27 *(.text)
28 }
29 _extext = . ;
30
31 . = ALIGN(4);
32 .rodata : {
33 *(.rodata)
34 }
35
36
37 . = ALIGN(4);
38 __idata_start = .;
39 .data : AT(__idata_start)
40 {
41 __data_start = .;
42 *(.data)
43 }
44 __idata_end = __idata_start + SIZEOF(.data);
45
46 /*
47 * Alignments by 8 to ensure that _SDA2_BASE_ on a word boundary
48 */
49 . = ALIGN(8);
50 _ssrw = .;
51 __isdata2_start = __idata_start + (_ssrw - __data_start);
52 .sdata2 :AT(__isdata2_start)
53 {
54 __sdata2_start = .;
55 *(.sdata2)
56 }
57 . = ALIGN(8);
58 _essrw = .;
59 __isdata2_end = __isdata2_start + SIZEOF(.sdata2);
60 _ssrw_size = _essrw - _ssrw;
61 _SDA2_BASE_ = _ssrw + (_ssrw_size / 2 );
62
63
64 /*
65 * Alignments by 8 to ensure that _SDA_BASE_ on a word boundary
66 * Note that .sdata and .sbss must be contiguous
67 */
68 . = ALIGN(8);
69 _ssro = .;
70 __isdata_start = __idata_start + (_ssro - __data_start);
71 .sdata : AT(__isdata_start)
72 {
73 __sdata_start = .;
74 *(.sdata)
75 }
76 __isdata_end = __isdata_start + SIZEOF(.sdata);
77
78 . = ALIGN(4);
79 __bss_start = . ;
80 .sbss : {
81 *(.sbss)
82 }
83
84 . = ALIGN(8);
85 _essro = .;
86 _ssro_size = _essro - _ssro;
87 _SDA_BASE_ = _ssro + (_ssro_size / 2 );
88
89 /*
90 * Define space for the stack and heap
91 * Note that variables _heap must be set to the beginning of this area
92 * and _stack set to the end of this area
93 */
94 . = ALIGN(4);
95 _heap = .;
96 .bss : {
97 *(.bss)
98 *(COMMON)
99 }
100 _stack = .;
101 . = ALIGN(4);
102 _end = .;
103 .comment 0 : { *(.comment) }
104 .debug 0 : { *(.debug) }
105 .line 0 : { *(.line) }
106 .debug_srcinfo 0 : { *(.debug_srcinfo) }
107 .debug_sfnames 0 : { *(.debug_sfnames) }
108 .debug_aranges 0 : { *(.debug_aranges) }
109 .debug_pubnames 0 : { *(.debug_pubnames) }
110}
111
Note: See TracBrowser for help on using the repository browser.