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

Subversion Repositories or1k

[/] [or1k/] [trunk/] [newlib/] [libgloss/] [sh/] [sh3lcevb.ld] - Blame information for rev 39

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 39 lampret
/* Linker script for the SH3 Low-Cost Eval Board. */
2
 
3
SEARCH_DIR(.)
4
GROUP(-lc -lgcc)
5
__DYNAMIC  =  0;
6
 
7
MEMORY
8
{
9
  ram (rwx) : ORIGIN = 0x8004000, LENGTH = 0x2000000
10
}
11
 
12
/* Put the stack up high. */
13
/* (Commented out because it doesn't seem to work right) */
14
/*PROVIDE (__stack = 0x8100000);*/
15
 
16
/* Initalize some symbols to be zero so we can reference them in the
17
   crt0 without core dumping. These functions are all optional, but
18
   we do this so we can have our crt0 always use them if they exist.
19
   This is so BSPs work better when using the crt0 installed with gcc.
20
   We have to initalize them twice, so we cover a.out (which prepends
21
   an underscore) and coff object file formats. */
22
 
23
PROVIDE (hardware_init_hook = 0);
24
PROVIDE (_hardware_init_hook = 0);
25
PROVIDE (software_init_hook = 0);
26
PROVIDE (_software_init_hook = 0);
27
 
28
/* Put everything in ram (of course).  */
29
 
30
SECTIONS
31
{
32
  .text :
33
  {
34
    *(.text)
35
    . = ALIGN(0x4);
36
     __CTOR_LIST__ = .;
37
    LONG((__CTOR_END__ - __CTOR_LIST__) / 4 - 2)
38
    ___ctors = .;
39
    *(.ctors)
40
    ___ctors_end = .;
41
    LONG(0)
42
    __CTOR_END__ = .;
43
    __DTOR_LIST__ = .;
44
    LONG((__DTOR_END__ - __DTOR_LIST__) / 4 - 2)
45
    ___dtors = .;
46
    *(.dtors)
47
    ___dtors_end = .;
48
     LONG(0)
49
    __DTOR_END__ = .;
50
    *(.rodata)
51
    *(.gcc_except_table)
52
 
53
     _etext = .;
54
    *(.lit)
55
  } > ram
56
 
57
  .data BLOCK (0x4) :
58
  {
59
    *(.shdata)
60
    *(.data)
61
    _edata = .;
62
  } > ram
63
 
64
  .bss BLOCK (0x4) :
65
  {
66
    __bss_start = . ;
67
    *(.shbss)
68
    *(.bss)
69
    *(COMMON)
70
    _end =  ALIGN (0x8);
71
    __end = _end;
72
  } > ram
73
 
74
  /* I know, I know, stack sections are supposed to be useless; but
75
     this actually worked for me, as opposed to the PROVIDE. */
76
  .stack 0x8100000 :
77
  {
78
        __stack = .;
79
  } > ram
80
 
81
  .stab 0 (NOLOAD) : { *(.stab) }
82
  .stabstr 0 (NOLOAD) : { *(.stabstr) }
83
}

powered by: WebSVN 2.1.0

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