source: EcnlProtoTool/trunk/asp3_dcre/target/gr_peach_gcc/gr_peach_rom.ld@ 270

Last change on this file since 270 was 270, checked in by coas-nagasima, 7 years ago

mruby版ECNLプロトタイピング・ツールを追加

File size: 2.7 KB
Line 
1/*
2 * $Id: gr_peach_rom.ld 720 2016-04-01 22:16:17Z ertl-hiro $
3 */
4
5OUTPUT_FORMAT("elf32-littlearm", "elf32-bigarm","elf32-littlearm")
6OUTPUT_ARCH(arm)
7ENTRY(start);
8
9MEMORY {
10 BOOT_LOADER (rx) : ORIGIN = 0x18000000, LENGTH = 0x00004000
11 ROM (rx) : ORIGIN = 0x18004000, LENGTH = 0x07FFC000
12 RAM (xrw) : ORIGIN = 0x20000000, LENGTH = 10M
13}
14
15PROVIDE(hardware_init_hook = 0);
16PROVIDE(software_init_hook = 0);
17PROVIDE(software_term_hook = 0);
18
19SECTIONS {
20 .boot : {
21 KEEP(*(.boot_loader))
22 } > BOOT_LOADER
23
24 .text : {
25 __start_text = .;
26 *(.vector)
27 *(.text)
28 *(.glue_7t)
29 *(.glue_7)
30 __end_kernel = .;
31 } > ROM
32 _etext = .;
33 PROVIDE(etext = .);
34
35 .rodata ALIGN(4) : {
36 __start_rodata = .;
37 *(.rodata)
38 __end_rodata = .;
39 } > ROM
40 .preinit_array ALIGN(4) : {
41 PROVIDE_HIDDEN (__preinit_array_start = .);
42 KEEP (*(.preinit_array))
43 PROVIDE_HIDDEN (__preinit_array_end = .);
44 } > ROM
45 .init_array ALIGN(4) : {
46 PROVIDE_HIDDEN (__init_array_start = .);
47 KEEP (*(SORT(.init_array.*)))
48 KEEP (*(.init_array))
49 PROVIDE_HIDDEN (__init_array_end = .);
50 } > ROM
51 .fini_array ALIGN(4) : {
52 PROVIDE_HIDDEN (__fini_array_start = .);
53 KEEP (*(SORT(.fini_array.*)))
54 KEEP (*(.fini_array))
55 PROVIDE_HIDDEN (__fini_array_end = .);
56 } > ROM
57 .ARM.exidx ALIGN(4) : {
58 __exidx_start = .;
59 *(.ARM.exidx* .gnu.linkonce.armexidx.*)
60 __exidx_end = .;
61 } > ROM
62
63 .data : ALIGN(4) {
64 __start_data = .;
65 *(.data)
66 __end_data = .;
67 } > RAM AT > ROM
68 __start_idata = LOADADDR(.data);
69 . = ALIGN(4);
70 _edata = .;
71 PROVIDE(edata = .);
72
73 .bss ALIGN(4) : {
74 __start_bss = .;
75 *(.bss)
76 *(COMMON)
77 __end_bss = .;
78 } > RAM
79 . = ALIGN(4);
80 _end = .;
81 PROVIDE(end = .);
82 .comment 0 : { *(.comment) }
83
84 /*
85 * DWARF debug sections.
86 * Symbols in the DWARF debugging sections are relative to
87 * the beginning of the section so we begin them at 0.
88 */
89
90 /* DWARF 1 */
91 .debug 0 : { *(.debug) }
92 .line 0 : { *(.line) }
93
94 /* GNU DWARF 1 extensions */
95 .debug_srcinfo 0 : { *(.debug_srcinfo) }
96 .debug_sfnames 0 : { *(.debug_sfnames) }
97
98 /* DWARF 1.1 and DWARF 2 */
99 .debug_aranges 0 : { *(.debug_aranges) }
100 .debug_pubnames 0 : { *(.debug_pubnames) }
101
102 /* DWARF 2 */
103 .debug_info 0 : { *(.debug_info) }
104 .debug_abbrev 0 : { *(.debug_abbrev) }
105 .debug_line 0 : { *(.debug_line) }
106 .debug_frame 0 : { *(.debug_frame) }
107 .debug_str 0 : { *(.debug_str) }
108 .debug_loc 0 : { *(.debug_loc) }
109 .debug_macinfo 0 : { *(.debug_macinfo) }
110
111 /* SGI/MIPS DWARF 2 extensions */
112 .debug_weaknames 0 : { *(.debug_weaknames) }
113 .debug_funcnames 0 : { *(.debug_funcnames) }
114 .debug_typenames 0 : { *(.debug_typenames) }
115 .debug_varnames 0 : { *(.debug_varnames) }
116}
Note: See TracBrowser for help on using the repository browser.