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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-stable/] [binutils-2.20.1/] [ld/] [scripttempl/] [sh.sc] - Blame information for rev 818

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 205 julius
TORS=".tors :
2
  {
3
    ___ctors = . ;
4
    *(.ctors)
5
    ___ctors_end = . ;
6
    ___dtors = . ;
7
    *(.dtors)
8
    ___dtors_end = . ;
9
  } > ram"
10
 
11
cat <
12
OUTPUT_FORMAT("${OUTPUT_FORMAT}")
13
OUTPUT_ARCH(${ARCH})
14
 
15
MEMORY
16
{
17
  ram : o = 0x1000, l = 512k
18
}
19
 
20
SECTIONS
21
{
22
  .text :
23
  {
24
    *(.text)
25
    *(.strings)
26
    ${RELOCATING+ _etext = . ; }
27
  } ${RELOCATING+ > ram}
28
  ${CONSTRUCTING+${TORS}}
29
  .data :
30
  {
31
    *(.data)
32
    ${RELOCATING+*(.gcc_exc*)}
33
    ${RELOCATING+___EH_FRAME_BEGIN__ = . ;}
34
    ${RELOCATING+*(.eh_fram*)}
35
    ${RELOCATING+___EH_FRAME_END__ = . ;}
36
    ${RELOCATING+LONG(0);}
37
    ${RELOCATING+ _edata = . ; }
38
  } ${RELOCATING+ > ram}
39
  .bss :
40
  {
41
    ${RELOCATING+ _bss_start = . ; }
42
    *(.bss)
43
    *(COMMON)
44
    ${RELOCATING+ _end = . ;  }
45
  } ${RELOCATING+ > ram}
46
  .stack ${RELOCATING+ 0x30000 }  :
47
  {
48
    ${RELOCATING+ _stack = . ; }
49
    *(.stack)
50
  } ${RELOCATING+ > ram}
51
  .stab 0 ${RELOCATING+(NOLOAD)} :
52
  {
53
    *(.stab)
54
  }
55
  .stabstr 0 ${RELOCATING+(NOLOAD)} :
56
  {
57
    *(.stabstr)
58
  }
59
}
60
EOF
61
 
62
 
63
 
64
 

powered by: WebSVN 2.1.0

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