4.104.114.84.95
Line | |
---|
1 | /* |
---|
2 | * This is not the real linkcmds for this target. See |
---|
3 | * linkcmds.real and make those work for you. That linkcmds |
---|
4 | * goes to great lengths to handplace certain object files |
---|
5 | * in very specific locations. |
---|
6 | * |
---|
7 | * $Id$ |
---|
8 | */ |
---|
9 | |
---|
10 | /* |
---|
11 | * Declare some sizes. |
---|
12 | */ |
---|
13 | _RamBase = DEFINED(_RamBase) ? _RamBase : 0x0; |
---|
14 | _RamSize = DEFINED(_RamSize) ? _RamSize : 1M; |
---|
15 | _HeapSize = DEFINED(_HeapSize) ? _HeapSize : 0x10000; |
---|
16 | _StackSize = DEFINED(_StackSize) ? _StackSize : 0x1000; |
---|
17 | |
---|
18 | SECTIONS |
---|
19 | { |
---|
20 | . = 0x0; |
---|
21 | .text : |
---|
22 | { |
---|
23 | CREATE_OBJECT_SYMBOLS |
---|
24 | *(.text) |
---|
25 | _rodata_start = . ; |
---|
26 | *(.rodata*) |
---|
27 | *(.gnu.linkonce.r*) |
---|
28 | _erodata = ALIGN( 0x10 ) ; |
---|
29 | _etext = .; |
---|
30 | |
---|
31 | /* |
---|
32 | * Special FreeBSD sysctl sections. |
---|
33 | */ |
---|
34 | . = ALIGN (16); |
---|
35 | __start_set_sysctl_set = .; |
---|
36 | *(set_sysctl_*); |
---|
37 | __stop_set_sysctl_set = ABSOLUTE(.); |
---|
38 | *(set_domain_*); |
---|
39 | *(set_pseudo_*); |
---|
40 | |
---|
41 | ___CTOR_LIST__ = .; |
---|
42 | LONG((___CTOR_END__ - ___CTOR_LIST__) / 4 - 2) |
---|
43 | *(.ctors) |
---|
44 | LONG(0) |
---|
45 | ___CTOR_END__ = .; |
---|
46 | ___DTOR_LIST__ = .; |
---|
47 | LONG((___DTOR_END__ - ___DTOR_LIST__) / 4 - 2) |
---|
48 | *(.dtors) |
---|
49 | LONG(0) |
---|
50 | ___DTOR_END__ = .; |
---|
51 | } |
---|
52 | .data SIZEOF(.text) + ADDR(.text): |
---|
53 | { |
---|
54 | *(.data) |
---|
55 | CONSTRUCTORS |
---|
56 | _edata = .; |
---|
57 | } |
---|
58 | .bss SIZEOF(.data) + ADDR(.data): |
---|
59 | { |
---|
60 | _bss_start = .; |
---|
61 | *(.bss) |
---|
62 | *(COMMON) |
---|
63 | . = ALIGN (64); |
---|
64 | _stack_init = .; |
---|
65 | . += _StackSize; |
---|
66 | _clear_end = .; |
---|
67 | _WorkspaceBase = .; |
---|
68 | . += 512K; /* reserve some memory for workspace */ |
---|
69 | _HeapBase = .; |
---|
70 | . += _HeapSize; /* reserve some memory for heap */ |
---|
71 | _end = .; |
---|
72 | __end = .; |
---|
73 | } |
---|
74 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.