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

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [binutils-2.20.1/] [ld/] [scripttempl/] [pj.sc] - Blame information for rev 297

Go to most recent revision | 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 = 512M
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+ _edata = . ; }
33
  } ${RELOCATING+ > ram}
34
  .bss :
35
  {
36
    ${RELOCATING+ _bss_start = . ; }
37
    *(.bss)
38
    *(COMMON)
39
    ${RELOCATING+ _end = . ;  }
40
  } ${RELOCATING+ > ram}
41
  .stack ${RELOCATING+ 0x30000 }  :
42
  {
43
    ${RELOCATING+ _stack = . ; }
44
    *(.stack)
45
  } ${RELOCATING+ > ram}
46
  .stab 0 ${RELOCATING+(NOLOAD)} :
47
  {
48
    *(.stab)
49
  }
50
  .stabstr 0 ${RELOCATING+(NOLOAD)} :
51
  {
52
    *(.stabstr)
53
  }
54
}
55
EOF

powered by: WebSVN 2.1.0

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