1 | MEMORY
|
---|
2 | {
|
---|
3 | ROM (rx) : ORIGIN = 0x00000000, LENGTH = 1024K
|
---|
4 | RAM (rwx) : ORIGIN = 0x10000000, LENGTH = 256K
|
---|
5 | RAM2 (rwx) : ORIGIN = 0x20000000, LENGTH = 32K
|
---|
6 | }
|
---|
7 |
|
---|
8 | OUTPUT_FORMAT("elf32-littlearm", "elf32-bigarm","elf32-littlearm")
|
---|
9 | OUTPUT_ARCH(arm)
|
---|
10 |
|
---|
11 | PROVIDE(hardware_init_hook = 0);
|
---|
12 | PROVIDE(software_init_hook = 0);
|
---|
13 | PROVIDE(software_term_hook = 0);
|
---|
14 | PROVIDE(_kernel_datasecinib_table = 0);
|
---|
15 | PROVIDE(_kernel_tnum_datasec = 0);
|
---|
16 | PROVIDE(_kernel_bsssecinib_table = 0);
|
---|
17 | PROVIDE(_kernel_tnum_bsssec = 0);
|
---|
18 | STARTUP(start.o)
|
---|
19 | ENTRY(_start)
|
---|
20 |
|
---|
21 | SECTIONS
|
---|
22 | {
|
---|
23 | .text :
|
---|
24 | {
|
---|
25 | __text = . ;
|
---|
26 | KEEP(*(.vector))
|
---|
27 | *(.text*)
|
---|
28 | *(.glue_7t)
|
---|
29 | *(.glue_7)
|
---|
30 | } > RAM
|
---|
31 | _eboot = . ;
|
---|
32 | _etext = . ;
|
---|
33 | PROVIDE (etext = .) ;
|
---|
34 |
|
---|
35 | .rodata : {
|
---|
36 | *(.rodata*)
|
---|
37 | } > RAM
|
---|
38 |
|
---|
39 | . = ALIGN(4);
|
---|
40 | __idata_start = . ;
|
---|
41 | .data : AT(__idata_start)
|
---|
42 | {
|
---|
43 | __data_start = . ;
|
---|
44 | *(vtable)
|
---|
45 | *(.data*)
|
---|
46 | } > RAM
|
---|
47 | __idata_end = __idata_start + SIZEOF(.data);
|
---|
48 | _edata = . ;
|
---|
49 | PROVIDE (edata = .);
|
---|
50 | . = ALIGN(4);
|
---|
51 |
|
---|
52 | .bss :
|
---|
53 | {
|
---|
54 | __bss_start = . ;
|
---|
55 | *(.bss*)
|
---|
56 | *(COMMON)
|
---|
57 | . = ALIGN(32 / 8);
|
---|
58 | } > RAM
|
---|
59 | . = ALIGN(32 / 8);
|
---|
60 | _end = . ;
|
---|
61 | __bss_end = .;
|
---|
62 | PROVIDE (end = .) ;
|
---|
63 |
|
---|
64 | .comment 0 : { *(.comment) }
|
---|
65 |
|
---|
66 | /* DWARF debug sections.
|
---|
67 | Symbols in the DWARF debugging sections are relative to
|
---|
68 | the beginning of the section so we begin them at 0. */
|
---|
69 |
|
---|
70 | /* DWARF 1 */
|
---|
71 | .debug 0 : { *(.debug) }
|
---|
72 | .line 0 : { *(.line) }
|
---|
73 |
|
---|
74 | /* GNU DWARF 1 extensions */
|
---|
75 | .debug_srcinfo 0 : { *(.debug_srcinfo) }
|
---|
76 | .debug_sfnames 0 : { *(.debug_sfnames) }
|
---|
77 |
|
---|
78 | /* DWARF 1.1 and DWARF 2 */
|
---|
79 | .debug_aranges 0 : { *(.debug_aranges) }
|
---|
80 | .debug_pubnames 0 : { *(.debug_pubnames) }
|
---|
81 |
|
---|
82 | /* DWARF 2 */
|
---|
83 | .debug_info 0 : { *(.debug_info) }
|
---|
84 | .debug_abbrev 0 : { *(.debug_abbrev) }
|
---|
85 | .debug_line 0 : { *(.debug_line) }
|
---|
86 | .debug_frame 0 : { *(.debug_frame) }
|
---|
87 | .debug_str 0 : { *(.debug_str) }
|
---|
88 | .debug_loc 0 : { *(.debug_loc) }
|
---|
89 | .debug_macinfo 0 : { *(.debug_macinfo) }
|
---|
90 |
|
---|
91 | /* SGI/MIPS DWARF 2 extensions */
|
---|
92 | .debug_weaknames 0 : { *(.debug_weaknames) }
|
---|
93 | .debug_funcnames 0 : { *(.debug_funcnames) }
|
---|
94 | .debug_typenames 0 : { *(.debug_typenames) }
|
---|
95 | .debug_varnames 0 : { *(.debug_varnames) }
|
---|
96 | }
|
---|