Commit | Line | Data |
---|---|---|
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>. | |
4 | cat <<EOF | |
5 | OUTPUT_FORMAT("${OUTPUT_FORMAT}") | |
6 | ${LIB_SEARCH_DIRS} | |
7 | ||
8 | ENTRY(__start) | |
9 | ||
10 | SECTIONS | |
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 | } | |
45 | EOF |