OpenCores
URL https://opencores.org/ocsvn/or1k/or1k/trunk

Subversion Repositories or1k

[/] [or1k/] [trunk/] [uclinux/] [uClinux-2.0.x/] [arch/] [i960/] [init_cyjx.ld] - Blame information for rev 1765

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 199 simons
/*
2
 *   This is the linker directive file to link an application to run
3
 *   under mon960 on the CY board with a Cx, Jx, or Hx processor.
4
 *   Programs linked with this file are downloaded to DRAM after the
5
 *   data area used by mon960.
6
 *   malloc() uses the symbols _heap_base and _heap_end to manage the heap.
7
 *   _heap_base is located at the end of program memory (.text + .data +.bss).
8
 *   _heap_size is defined as 0x20000.
9
 *   The C runtime stack starts at _heap_end and grows up.
10
 *   There must be enough room after the program memory in the dram for
11
 *   the program's heap and stack.
12
 */
13
 
14
MEMORY
15
   {
16
      dram  :  org = 0xA3C08000, len = 0x1ff8000   /* 4M less monitor */
17
      isram :  org = 0x00000100, len = 0x300
18
   }
19
 
20
 
21
SECTIONS
22
   {
23
      .text :
24
         {
25
         } >dram
26
 
27
      .data :
28
         {
29
         } >dram
30
 
31
      .bss :
32
         {
33
         } >dram
34
 
35
 
36
/* For R4.0 of the compiler & libraries, the following lines */
37
/* should not be enclosed in comments. */
38
/*
39
        SFP_AC :
40
        {
41
           fpem_CA_AC = .;
42
        } >isram
43
*/
44
   }
45
 
46
/* Bounds of heap: */
47
/* The heap may be placed in a separate memory region, if desired. */
48
 
49
/* _stackbase marks the base of the kernel's initial stack. We put it way at
50
 * the top of memory. */
51
__stext = __Btext;
52
__etext = __Etext;
53
__sdata = __Bdata;
54
__edata = __Edata;
55
__end = _end;
56
_stackbase = 0xa3ff0000;
57
 
58
ENTRY(_main)
59
/* Don't use low-level libs anymore */
60
/*
61
STARTUP ("crt960*")
62
HLL ()
63
SYSLIB ("libmn*")
64
SYSLIB ("libll*")
65
*/
66
FLOAT

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.