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 | ENTRY(_start)
|
---|
15 |
|
---|
16 | SECTIONS
|
---|
17 | {
|
---|
18 | .text :
|
---|
19 | {
|
---|
20 | __text = . ;
|
---|
21 | KEEP(*(.vector))
|
---|
22 | *(.text*)
|
---|
23 | *(.glue_7t)
|
---|
24 | *(.glue_7)
|
---|
25 | } > RAM
|
---|
26 | _etext = . ;
|
---|
27 | PROVIDE (etext = .) ;
|
---|
28 |
|
---|
29 | .rodata : {
|
---|
30 | *(.rodata*)
|
---|
31 | } > RAM
|
---|
32 |
|
---|
33 | . = ALIGN(4);
|
---|
34 | __idata_start = . ;
|
---|
35 | .data : AT(__idata_start)
|
---|
36 | {
|
---|
37 | __data_start = . ;
|
---|
38 | *(vtable)
|
---|
39 | *(.data*)
|
---|
40 | } > RAM
|
---|
41 | __idata_end = __idata_start + SIZEOF(.data);
|
---|
42 | _edata = . ;
|
---|
43 | PROVIDE (edata = .);
|
---|
44 | . = ALIGN(4);
|
---|
45 |
|
---|
46 | .bss :
|
---|
47 | {
|
---|
48 | __bss_start = . ;
|
---|
49 | *(.bss*)
|
---|
50 | *(COMMON)
|
---|
51 | . = ALIGN(32 / 8);
|
---|
52 | } > RAM
|
---|
53 | . = ALIGN(32 / 8);
|
---|
54 | _end = . ;
|
---|
55 | __bss_end = .;
|
---|
56 | PROVIDE (end = .) ;
|
---|
57 |
|
---|
58 | .comment 0 : { *(.comment) }
|
---|
59 |
|
---|
60 | /* DWARF debug sections.
|
---|
61 | Symbols in the DWARF debugging sections are relative to
|
---|
62 | the beginning of the section so we begin them at 0. */
|
---|
63 |
|
---|
64 | /* DWARF 1 */
|
---|
65 | .debug 0 : { *(.debug) }
|
---|
66 | .line 0 : { *(.line) }
|
---|
67 |
|
---|
68 | /* GNU DWARF 1 extensions */
|
---|
69 | .debug_srcinfo 0 : { *(.debug_srcinfo) }
|
---|
70 | .debug_sfnames 0 : { *(.debug_sfnames) }
|
---|
71 |
|
---|
72 | /* DWARF 1.1 and DWARF 2 */
|
---|
73 | .debug_aranges 0 : { *(.debug_aranges) }
|
---|
74 | .debug_pubnames 0 : { *(.debug_pubnames) }
|
---|
75 |
|
---|
76 | /* DWARF 2 */
|
---|
77 | .debug_info 0 : { *(.debug_info) }
|
---|
78 | .debug_abbrev 0 : { *(.debug_abbrev) }
|
---|
79 | .debug_line 0 : { *(.debug_line) }
|
---|
80 | .debug_frame 0 : { *(.debug_frame) }
|
---|
81 | .debug_str 0 : { *(.debug_str) }
|
---|
82 | .debug_loc 0 : { *(.debug_loc) }
|
---|
83 | .debug_macinfo 0 : { *(.debug_macinfo) }
|
---|
84 |
|
---|
85 | /* SGI/MIPS DWARF 2 extensions */
|
---|
86 | .debug_weaknames 0 : { *(.debug_weaknames) }
|
---|
87 | .debug_funcnames 0 : { *(.debug_funcnames) }
|
---|
88 | .debug_typenames 0 : { *(.debug_typenames) }
|
---|
89 | .debug_varnames 0 : { *(.debug_varnames) }
|
---|
90 | }
|
---|