1 | /* |
---|
2 | * $Id$ |
---|
3 | */ |
---|
4 | |
---|
5 | /* |
---|
6 | * Declare some sizes. |
---|
7 | */ |
---|
8 | _RamBase = DEFINED(_RamBase) ? _RamBase : 0x0; |
---|
9 | _RamSize = DEFINED(_RamSize) ? _RamSize : 1M; |
---|
10 | _HeapSize = DEFINED(_HeapSize) ? _HeapSize : 0x10000; |
---|
11 | _StackSize = DEFINED(_StackSize) ? _StackSize : 0x1000; |
---|
12 | |
---|
13 | SECTIONS |
---|
14 | { |
---|
15 | . = 0x8000; |
---|
16 | .text : |
---|
17 | { |
---|
18 | CREATE_OBJECT_SYMBOLS |
---|
19 | *(.text) |
---|
20 | *(.rodata*) |
---|
21 | |
---|
22 | /* |
---|
23 | * Special FreeBSD sysctl sections. |
---|
24 | */ |
---|
25 | . = ALIGN (16); |
---|
26 | __start_set_sysctl_set = .; |
---|
27 | *(set_sysctl_*); |
---|
28 | __stop_set_sysctl_set = ABSOLUTE(.); |
---|
29 | *(set_domain_*); |
---|
30 | *(set_pseudo_*); |
---|
31 | |
---|
32 | _etext = .; |
---|
33 | |
---|
34 | ___CTOR_LIST__ = .; |
---|
35 | LONG((___CTOR_END__ - ___CTOR_LIST__) / 4 - 2) |
---|
36 | *(.ctors) |
---|
37 | LONG(0) |
---|
38 | ___CTOR_END__ = .; |
---|
39 | ___DTOR_LIST__ = .; |
---|
40 | LONG((___DTOR_END__ - ___DTOR_LIST__) / 4 - 2) |
---|
41 | *(.dtors) |
---|
42 | LONG(0) |
---|
43 | ___DTOR_END__ = .; |
---|
44 | } |
---|
45 | . = ALIGN(256) + (. & (256 - 1)); |
---|
46 | .data : |
---|
47 | { |
---|
48 | *(.data) |
---|
49 | *(.jcr) |
---|
50 | CONSTRUCTORS |
---|
51 | _edata = .; |
---|
52 | } |
---|
53 | .bss SIZEOF(.data) + ADDR(.data): |
---|
54 | { |
---|
55 | _bss_start = .; |
---|
56 | _clear_start = .; |
---|
57 | *(.bss) |
---|
58 | *(COMMON) |
---|
59 | . = ALIGN (64); |
---|
60 | _stack_init = .; |
---|
61 | . += _StackSize; |
---|
62 | _clear_end = .; |
---|
63 | _WorkspaceBase = .; |
---|
64 | . += 512K; /* reserve some memory for workspace */ |
---|
65 | _HeapBase = .; |
---|
66 | . += _HeapSize; /* reserve some memory for heap */ |
---|
67 | _end = .; |
---|
68 | __end = .; |
---|
69 | } |
---|
70 | /* XXX */ |
---|
71 | /* These are needed for ELF backends which have not yet been |
---|
72 | converted to the new style linker. */ |
---|
73 | .stab 0 : { *(.stab) } |
---|
74 | .stabstr 0 : { *(.stabstr) } |
---|
75 | /* DWARF debug sections. |
---|
76 | Symbols in the DWARF debugging sections are relative to the beginning |
---|
77 | of the section so we begin them at 0. */ |
---|
78 | /* DWARF 1 */ |
---|
79 | .debug 0 : { *(.debug) } |
---|
80 | .line 0 : { *(.line) } |
---|
81 | /* GNU DWARF 1 extensions */ |
---|
82 | .debug_srcinfo 0 : { *(.debug_srcinfo) } |
---|
83 | .debug_sfnames 0 : { *(.debug_sfnames) } |
---|
84 | /* DWARF 1.1 and DWARF 2 */ |
---|
85 | .debug_aranges 0 : { *(.debug_aranges) } |
---|
86 | .debug_pubnames 0 : { *(.debug_pubnames) } |
---|
87 | /* DWARF 2 */ |
---|
88 | .debug_info 0 : { *(.debug_info) } |
---|
89 | .debug_abbrev 0 : { *(.debug_abbrev) } |
---|
90 | .debug_line 0 : { *(.debug_line) } |
---|
91 | .debug_frame 0 : { *(.debug_frame) } |
---|
92 | .debug_str 0 : { *(.debug_str) } |
---|
93 | .debug_loc 0 : { *(.debug_loc) } |
---|
94 | .debug_macinfo 0 : { *(.debug_macinfo) } |
---|
95 | /* SGI/MIPS DWARF 2 extensions */ |
---|
96 | .debug_weaknames 0 : { *(.debug_weaknames) } |
---|
97 | .debug_funcnames 0 : { *(.debug_funcnames) } |
---|
98 | .debug_typenames 0 : { *(.debug_typenames) } |
---|
99 | .debug_varnames 0 : { *(.debug_varnames) } |
---|
100 | /* These must appear regardless of . */ |
---|
101 | |
---|
102 | } |
---|
103 | |
---|
104 | HeapBase = _HeapBase; |
---|
105 | HeapSize = _HeapSize; |
---|
106 | WorkspaceBase = _WorkspaceBase; |
---|