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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [binutils-2.18.50/] [ld/] [scripttempl/] [sparclynx.sc] - Blame information for rev 825

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

Line No. Rev Author Line
1 38 julius
# Linker script for Sparc LynxOS.
2
test -z "$ENTRY" && ENTRY=_start
3
cat <
4
OUTPUT_FORMAT("${OUTPUT_FORMAT}")
5
${LIB_SEARCH_DIRS}
6
 
7
ENTRY(${ENTRY})
8
 
9
SECTIONS
10
{
11
  .text ${RELOCATING+ SIZEOF_HEADERS} : {
12
    *(.init)
13
    *(.text)
14
    ${RELOCATING+ etext  =  .;}
15
    ${CONSTRUCTING+ ___CTOR_LIST__ = .;}
16
    ${CONSTRUCTING+ LONG((___CTOR_END__ - ___CTOR_LIST__) / 4 - 2)}
17
    ${CONSTRUCTING+ *(.ctors)}
18
    ${CONSTRUCTING+ LONG(0)}
19
    ${CONSTRUCTING+ ___CTOR_END__ = .;}
20
    ${CONSTRUCTING+ ___DTOR_LIST__ = .;}
21
    ${CONSTRUCTING+ LONG((___DTOR_END__ - ___DTOR_LIST__) / 4 - 2)}
22
    ${CONSTRUCTING+ *(.dtors)}
23
    ${CONSTRUCTING+ LONG(0)}
24
    ${CONSTRUCTING+ ___DTOR_END__ = .;}
25
    *(.fini)
26
    ${RELOCATING+ etext  =  .};
27
  }
28
  .data ${RELOCATING+ 0x400000 + (. & 0xffc00fff)} : {
29
    *(.data)
30
    ${RELOCATING+ edata  =  .};
31
  }
32
  .bss ${RELOCATING+ SIZEOF(.data) + ADDR(.data)} :
33
  {
34
    *(.bss)
35
    *(COMMON)
36
    ${RELOCATING+ end = .};
37
  }
38
  .stab  0 ${RELOCATING+(NOLOAD)} :
39
  {
40
    [ .stab ]
41
  }
42
  .stabstr  0 ${RELOCATING+(NOLOAD)} :
43
  {
44
    [ .stabstr ]
45
  }
46
}
47
EOF

powered by: WebSVN 2.1.0

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