source: rtems/c/src/lib/libbsp/mips/jmr3904/startup/linkcmds @ c1a24fbe

4.104.114.84.95
Last change on this file since c1a24fbe was c1a24fbe, checked in by Joel Sherrill <joel.sherrill@…>, on 11/30/00 at 14:10:38

2000-11-30 Joel Sherrill <joel@…>

  • README: Updated to reflect current status. Misaligned reference during initialization may be compiler problem.
  • console/console-io.c: Added support for printk().
  • startup/linkcmds: Reserve 512K for RTEMS Workspace.
  • Property mode set to 100644
File size: 2.6 KB
RevLine 
[c8471315]1/*
2 *  $Id$
3 *
4 *  Based on jmr3904app-dram.ld from newlib 1.8.2
5 */
6
7/*
8 * Declare some sizes.
9 */
10_RamBase = DEFINED(_RamBase) ? _RamBase : 0x0;
11_RamSize = DEFINED(_RamSize) ? _RamSize : 1M;
12HeapSize = DEFINED(HeapSize) ? HeapSize : 0x10000;
13_StackSize = DEFINED(_StackSize) ? _StackSize : 0x1000;
14
15SECTIONS
16{
[9ad0087]17    . = 0x88000000;
[c8471315]18    .text :
19    {
20       _ftext = . ;
21      *(.init)
22       eprol  =  .;
23      *(.text)
24      *(.text.*)
25      *(.gnu.linkonce.t*)
26      *(.mips16.fn.*)
27      *(.mips16.call.*)
28      PROVIDE (__runtime_reloc_start = .);
29      *(.rel.sdata)
30      PROVIDE (__runtime_reloc_stop = .);
31      *(.fini)
32       etext  =  .;
33       _etext  =  .;
34    } 
35    . = .;
36  .rdata : {
37    *(.rdata)
38    *(.rodata)
39    *(.rodata.*)
40    *(.gnu.linkonce.r*)
41  }
42   _fdata = ALIGN(16);
43  .data : {
44    *(.data)
45    *(.data.*)
46    *(.gnu.linkonce.d*)
47    CONSTRUCTORS
48  }
49  . = ALIGN(8);
50  _gp = . + 0x8000;
51  __global = _gp;
52  .lit8 : {
53    *(.lit8)
54  }
55  .lit4 : {
56    *(.lit4)
57  }
58  .sdata : {
59    *(.sdata)
60    *(.sdata.*)
61    *(.gnu.linkonce.s*)
62  }
63  . = ALIGN(4);
64   edata  =  .;
65   _edata  =  .;
66   _fbss = .;
67  .sbss : {
68    *(.sbss)
69    *(.scommon)
70  }
71  .bss : {
72    _bss_start = . ;
73    *(.bss)
74    *(COMMON)
75    . = ALIGN (64);
76    _stack_init = .;
77    . += _StackSize;
78    _clear_end = .;
79    WorkspaceBase = .;
[c1a24fbe]80    . += 512K;    /* reserve some memory for workspace */
[c8471315]81    HeapBase = .;
82    . += HeapSize;    /* reserve some memory for heap */
83  }
84 end = .;
85 _end = .;
86
87
88/* Put starting stack in SRAM (8 Kb); this size is the same as the stack from
89      the original script (when everything was in SRAM). */
90   __stack = 0x8000A000;
91  /* DWARF debug sections.
92     Symbols in the DWARF debugging sections are relative to
93     the beginning of the section so we begin them at 0.  */
94
95  /* DWARF 1 */
96  .debug          0 : { *(.debug) }
97  .line           0 : { *(.line) }
98
99  /* GNU DWARF 1 extensions */
100  .debug_srcinfo  0 : { *(.debug_srcinfo) }
101  .debug_sfnames  0 : { *(.debug_sfnames) }
102
103  /* DWARF 1.1 and DWARF 2 */
104  .debug_aranges  0 : { *(.debug_aranges) }
105  .debug_pubnames 0 : { *(.debug_pubnames) }
106
107  /* DWARF 2 */
108  .debug_info     0 : { *(.debug_info) }
109  .debug_abbrev   0 : { *(.debug_abbrev) }
110  .debug_line     0 : { *(.debug_line) }
111  .debug_frame    0 : { *(.debug_frame) }
112  .debug_str      0 : { *(.debug_str) }
113  .debug_loc      0 : { *(.debug_loc) }
114  .debug_macinfo  0 : { *(.debug_macinfo) }
115
116  /* SGI/MIPS DWARF 2 extensions */
117  .debug_weaknames 0 : { *(.debug_weaknames) }
118  .debug_funcnames 0 : { *(.debug_funcnames) }
119  .debug_typenames 0 : { *(.debug_typenames) }
120  .debug_varnames  0 : { *(.debug_varnames) }
121}
Note: See TracBrowser for help on using the repository browser.