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

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

NTShellタスクを更新

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