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