Fri Jan 22 14:22:44 1993 Ian Lance Taylor (ian@cygnus.com)
[deliverable/binutils-gdb.git] / ld / mips.sc-sh
CommitLineData
42b5c739
ILT
1# Linker script for MIPS. This works on a DECstation running Ultrix,
2# and may work on other platforms as well.
3# Ian Lance Taylor <ian@cygnus.com>.
4cat <<EOF
5OUTPUT_FORMAT("${OUTPUT_FORMAT}")
6${LIB_SEARCH_DIRS}
7
8ENTRY(__start)
9
10SECTIONS
11{
12 .text ${RELOCATING+ 0x400000 + SIZEOF_HEADERS} : {
13 *(.init)
14 ${RELOCATING+ eprol = .};
15 *(.text)
16 *(.fini)
17 ${RELOCATING+ etext = .};
18 }
19 .rdata ${RELOCATING+ 0x10000000} : {
20 *(.rdata)
21 }
22 .data ${RELOCATING+ .} : {
23 *(.data)
24 }
25 ${RELOCATING+ _gp = . + 0x8000};
26 .lit8 ${RELOCATING+ .} : {
27 *(.lit8)
28 }
29 .lit4 ${RELOCATING+ .} : {
30 *(.lit4)
31 }
32 .sdata ${RELOCATING+ .} : {
33 *(.sdata)
34 }
35 ${RELOCATING+ edata = .};
36 .sbss ${RELOCATING+ .} : {
37 *(.sbss)
38 }
39 .bss ${RELOCATING+ .} : {
40 *(.bss)
41 *(COMMON)
42 }
43 ${RELOCATING+ end = .};
44}
45EOF
This page took 0.023834 seconds and 4 git commands to generate.