source: rtems/c/src/lib/libbsp/arm/armulator/startup/linkcmds @ 68132f2

4.104.114.84.95
Last change on this file since 68132f2 was 68132f2, checked in by Joel Sherrill <joel.sherrill@…>, on 08/01/00 at 14:06:11

ARMulator BSP now runs with gdb 5.0.

  • Property mode set to 100644
File size: 2.3 KB
Line 
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
13SECTIONS
14{
15    . = 0x8000;
16    .text :
17    {
18         CREATE_OBJECT_SYMBOLS
19        *(.text)
20         _etext = .;
21       
22        ___CTOR_LIST__ = .;
23        LONG((___CTOR_END__ - ___CTOR_LIST__) / 4 - 2)
24        *(.ctors)
25        LONG(0)
26        ___CTOR_END__ = .;
27        ___DTOR_LIST__ = .;
28        LONG((___DTOR_END__ - ___DTOR_LIST__) / 4 - 2)
29        *(.dtors)
30        LONG(0)
31        ___DTOR_END__ = .;
32    } 
33    . = ALIGN(256) + (. & (256 - 1));
34    .data :
35    {
36        *(.data)
37        CONSTRUCTORS
38         _edata = .;
39    } 
40    .bss SIZEOF(.data) + ADDR(.data):
41    {
42         _bss_start = .;
43        _clear_start = .;
44        *(.bss) 
45        *(COMMON)
46        . = ALIGN (64);
47        _stack_init = .;
48        . += _StackSize;
49        _clear_end = .;
50        _WorkspaceBase = .;
51        . += 512K;      /* reserve some memory for workspace */
52        _HeapBase = .;
53        . += _HeapSize; /* reserve some memory for heap */
54         _end = .;
55         __end = .;
56    }
57/* XXX */
58  /* These are needed for ELF backends which have not yet been
59     converted to the new style linker.  */
60  .stab 0 : { *(.stab) }
61  .stabstr 0 : { *(.stabstr) }
62  /* DWARF debug sections.
63     Symbols in the DWARF debugging sections are relative to the beginning
64     of the section so we begin them at 0.  */
65  /* DWARF 1 */
66  .debug          0 : { *(.debug) }
67  .line           0 : { *(.line) }
68  /* GNU DWARF 1 extensions */
69  .debug_srcinfo  0 : { *(.debug_srcinfo) }
70  .debug_sfnames  0 : { *(.debug_sfnames) }
71  /* DWARF 1.1 and DWARF 2 */
72  .debug_aranges  0 : { *(.debug_aranges) }
73  .debug_pubnames 0 : { *(.debug_pubnames) }
74  /* DWARF 2 */
75  .debug_info     0 : { *(.debug_info) }
76  .debug_abbrev   0 : { *(.debug_abbrev) }
77  .debug_line     0 : { *(.debug_line) }
78  .debug_frame    0 : { *(.debug_frame) }
79  .debug_str      0 : { *(.debug_str) }
80  .debug_loc      0 : { *(.debug_loc) }
81  .debug_macinfo  0 : { *(.debug_macinfo) }
82  /* SGI/MIPS DWARF 2 extensions */
83  .debug_weaknames 0 : { *(.debug_weaknames) }
84  .debug_funcnames 0 : { *(.debug_funcnames) }
85  .debug_typenames 0 : { *(.debug_typenames) }
86  .debug_varnames  0 : { *(.debug_varnames) }
87  /* These must appear regardless of  .  */
88
89}
90
91HeapBase = _HeapBase;
92HeapSize = _HeapSize;
93WorkspaceBase = _WorkspaceBase;
Note: See TracBrowser for help on using the repository browser.