aboutsummaryrefslogtreecommitdiff
path: root/ld/mips.sc-sh
blob: 5d492e1428e7d022ce88645206338d61ae84632e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
# Linker script for MIPS.  This works on a DECstation running Ultrix,
# and may work on other platforms as well.
# Ian Lance Taylor <ian@cygnus.com>.
cat <<EOF
OUTPUT_FORMAT("${OUTPUT_FORMAT}")
${LIB_SEARCH_DIRS}

ENTRY(__start)

SECTIONS
{
  .text ${RELOCATING+ 0x400000 + SIZEOF_HEADERS} : {
    *(.init)
    ${RELOCATING+ eprol  =  .};
    *(.text)
    *(.fini)
    ${RELOCATING+ etext  =  .};
  }
  .rdata ${RELOCATING+ 0x10000000} : {
    *(.rdata)
  }
  .data ${RELOCATING+ .} : {
    *(.data)
  }
  ${RELOCATING+ _gp = . + 0x8000;}
  .lit8 ${RELOCATING+ .} : {
    *(.lit8)
  }
  .lit4 ${RELOCATING+ .} : {
    *(.lit4)
  }
  .sdata ${RELOCATING+ .} : {
    *(.sdata)
  }
  ${RELOCATING+ edata  =  .;}
  .sbss ${RELOCATING+ .} : {
    *(.sbss)
  }
  .bss ${RELOCATING+ .} : {
    *(.bss)
    *(COMMON)
  }
  ${RELOCATING+ end = .;}
}
EOF