|
2
|
1 //=========================================================================== |
|
|
2 // |
|
|
3 // MLT linker script export |
|
|
4 // |
|
|
5 //=========================================================================== |
|
|
6 //####COPYRIGHTBEGIN#### |
|
|
7 // |
|
|
8 // ------------------------------------------- |
|
|
9 // The contents of this file are subject to the Cygnus eCos Public License |
|
|
10 // Version 1.0 (the "License"); you may not use this file except in |
|
|
11 // compliance with the License. You may obtain a copy of the License at |
|
|
12 // http://sourceware.cygnus.com/ecos |
|
|
13 // |
|
|
14 // Software distributed under the License is distributed on an "AS IS" |
|
|
15 // basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the |
|
|
16 // License for the specific language governing rights and limitations under |
|
|
17 // the License. |
|
|
18 // |
|
|
19 // The Original Code is eCos - Embedded Cygnus Operating System, released |
|
|
20 // September 30, 1998. |
|
|
21 // |
|
|
22 // The Initial Developer of the Original Code is Cygnus. Portions created |
|
|
23 // by Cygnus are Copyright (C) 1998,1999 Cygnus Solutions. All Rights Reserved. |
|
|
24 // ------------------------------------------- |
|
|
25 // |
|
|
26 //####COPYRIGHTEND#### |
|
|
27 //=========================================================================== |
|
|
28 |
|
|
29 MEMORY |
|
|
30 { |
|
|
31 ram : ORIGIN = 0x00000000, LENGTH = 0x800000 |
|
|
32 } |
|
|
33 |
|
|
34 // The rel__got section doesn't result in any output but the linker |
|
|
35 // complains if it is not present. It is necessary when compiling |
|
|
36 // with CYGIMP_LIBC_MALLOC_CXX_DELETE_CALLS_FREE=true but causes |
|
|
37 // problems with BFD when this option is false. |
|
|
38 |
|
|
39 SECTIONS |
|
|
40 { |
|
|
41 SECTIONS_BEGIN |
|
|
42 SECTION_vectors (ram, 0x0, LMA_EQ_VMA) |
|
|
43 SECTION_text (ram, ALIGN (0x4), LMA_EQ_VMA) |
|
|
44 SECTION_fini (ram, ALIGN (0x4), LMA_EQ_VMA) |
|
|
45 SECTION_rodata1 (ram, ALIGN (0x8), LMA_EQ_VMA) |
|
|
46 SECTION_rodata (ram, ALIGN (0x8), LMA_EQ_VMA) |
|
|
47 SECTION_fixup (ram, ALIGN (0x4), LMA_EQ_VMA) |
|
|
48 SECTION_gcc_except_table (ram, ALIGN (0x1), LMA_EQ_VMA) |
|
|
49 // SECTION_rel__got (ram, ALIGN (0x1), LMA_EQ_VMA) |
|
|
50 SECTION_data (ram, ALIGN (0x8), LMA_EQ_VMA) |
|
|
51 SECTION_sbss (ram, ALIGN (0x4), LMA_EQ_VMA) |
|
|
52 SECTION_bss (ram, ALIGN (0x10), LMA_EQ_VMA) |
|
|
53 SECTIONS_END |
|
|
54 } |