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