source: anotherchoice/tags/jsp-1.4.4-full-UTF8/config/lm32/ecp2/lm32elf.ld@ 26

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

initial

File size: 3.1 KB
Line 
1/*
2 * @(#) $Id: lm32elf.ld,v 1.14 2007/07/27 11:28:44 honda Exp $
3 */
4
5
6
7OUTPUT_FORMAT("elf32-lm32")
8ENTRY(reset)
9
10/*
11 * This section defines memory attributes (name, origin, length) for the platform
12 */
13MEMORY
14{
15 sram : ORIGIN = 0x02000000, LENGTH = 1048576
16}
17
18SECTIONS
19{
20
21 /* code */
22 .boot : { *(.boot) } > sram
23 .text :
24 {
25 . = ALIGN(4);
26 _ftext = .;
27 *(.text .stub .text.* .gnu.linkonce.t.*)
28 *(.gnu.warning)
29 KEEP (*(.init))
30 KEEP (*(.fini))
31
32 /* Exception handlers */
33 *(.eh_frame_hdr)
34 KEEP (*(.eh_frame))
35 *(.gcc_except_table)
36
37 /* Constructors and destructors */
38 KEEP (*crtbegin*.o(.ctors))
39 KEEP (*(EXCLUDE_FILE (*crtend*.o ) .ctors))
40 KEEP (*(SORT(.ctors.*)))
41 KEEP (*(.ctors))
42 KEEP (*crtbegin*.o(.dtors))
43 KEEP (*(EXCLUDE_FILE (*crtend*.o ) .dtors))
44 KEEP (*(SORT(.dtors.*)))
45 KEEP (*(.dtors))
46 KEEP (*(.jcr))
47 _etext = .;
48 } > sram =0
49
50 /* read-only data */
51 .rodata :
52 {
53 . = ALIGN(4);
54 _frodata = .;
55 _frodata_rom = LOADADDR(.rodata);
56 *(.rodata .rodata.* .gnu.linkonce.r.*)
57 *(.rodata1)
58 _erodata = .;
59 } > sram
60
61 /* read/write data */
62 .data :
63 {
64 . = ALIGN(4);
65 _fdata = .;
66 *(.data .data.* .gnu.linkonce.d.*)
67 *(.data1)
68 SORT(CONSTRUCTORS)
69 _gp = ALIGN(16) + 0x7ff0;
70 *(.sdata .sdata.* .gnu.linkonce.s.*)
71 _edata = .;
72 } > sram
73
74 /* bss */
75 .bss :
76 {
77 . = ALIGN(4);
78 _fbss = .;
79 *(.dynsbss)
80 *(.sbss .sbss.* .gnu.linkonce.sb.*)
81 *(.scommon)
82 *(.dynbss)
83 *(.bss .bss.* .gnu.linkonce.b.*)
84 *(COMMON)
85 . = ALIGN(4);
86 _ebss = .;
87 _end = .;
88 PROVIDE (end = .);
89 } > sram
90
91 /* first location in stack is highest address in ram */
92 PROVIDE(_fstack = ORIGIN(sram) + LENGTH(sram) - 4);
93
94 /* stabs debugging sections. */
95 .stab 0 : { *(.stab) }
96 .stabstr 0 : { *(.stabstr) }
97 .stab.excl 0 : { *(.stab.excl) }
98 .stab.exclstr 0 : { *(.stab.exclstr) }
99 .stab.index 0 : { *(.stab.index) }
100 .stab.indexstr 0 : { *(.stab.indexstr) }
101 .comment 0 : { *(.comment) }
102
103 /* DWARF debug sections.
104 Symbols in the DWARF debugging sections are relative to the beginning
105 of the section so we begin them at 0. */
106 /* DWARF 1 */
107 .debug 0 : { *(.debug) }
108 .line 0 : { *(.line) }
109 /* GNU DWARF 1 extensions */
110 .debug_srcinfo 0 : { *(.debug_srcinfo) }
111 .debug_sfnames 0 : { *(.debug_sfnames) }
112 /* DWARF 1.1 and DWARF 2 */
113 .debug_aranges 0 : { *(.debug_aranges) }
114 .debug_pubnames 0 : { *(.debug_pubnames) }
115 /* DWARF 2 */
116 .debug_info 0 : { *(.debug_info .gnu.linkonce.wi.*) }
117 .debug_abbrev 0 : { *(.debug_abbrev) }
118 .debug_line 0 : { *(.debug_line) }
119 .debug_frame 0 : { *(.debug_frame) }
120 .debug_str 0 : { *(.debug_str) }
121 .debug_loc 0 : { *(.debug_loc) }
122 .debug_macinfo 0 : { *(.debug_macinfo) }
123 /* SGI/MIPS DWARF 2 extensions */
124 .debug_weaknames 0 : { *(.debug_weaknames) }
125 .debug_funcnames 0 : { *(.debug_funcnames) }
126 .debug_typenames 0 : { *(.debug_typenames) }
127 .debug_varnames 0 : { *(.debug_varnames) }
128}
129
Note: See TracBrowser for help on using the repository browser.