source: EcnlProtoTool/trunk/prototool/src/linker_scriptDebug.ld@ 426

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

ROMドライブの容量が足らなくなったので、1.75MByteに変更。

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