* config/sh/tm-sh.h (BELIEVE_PCC_PROMOTION): Define, so that
[deliverable/binutils-gdb.git] / ld / scripttempl / mips.sc
CommitLineData
8ddef552
DM
1# Linker script for MIPS systems.
2# Ian Lance Taylor <ian@cygnus.com>.
3# These variables may be overridden by the emulation file. The
4# defaults are appropriate for a DECstation running Ultrix.
5test -z "$ENTRY" && ENTRY=__start
6test -z "$TEXT_START_ADDR" && TEXT_START_ADDR="0x400000 + SIZEOF_HEADERS"
7test -z "$DATA_ADDR" && DATA_ADDR=0x10000000
8test -z "$BSS_VAR" && BSS_VAR=
9cat <<EOF
10OUTPUT_FORMAT("${OUTPUT_FORMAT}")
11${LIB_SEARCH_DIRS}
12
13ENTRY(${ENTRY})
14
15SECTIONS
16{
17 .text ${RELOCATING+ ${TEXT_START_ADDR}} : {
18 *(.init)
19 ${RELOCATING+ eprol = .};
20 *(.text)
21 *(.fini)
22 ${RELOCATING+ etext = .};
23 ${RELOCATING+ _etext = .};
24 }
25 .rdata ${RELOCATING+ ${DATA_ADDR}} : {
26 *(.rdata)
27 }
28 .data ${RELOCATING+ .} : {
29 *(.data)
30 ${CONSTRUCTING+CONSTRUCTORS}
31 }
32 ${RELOCATING+ _gp = . + 0x8000;}
33 .lit8 ${RELOCATING+ .} : {
34 *(.lit8)
35 }
36 .lit4 ${RELOCATING+ .} : {
37 *(.lit4)
38 }
39 .sdata ${RELOCATING+ .} : {
40 *(.sdata)
41 }
42 ${RELOCATING+ edata = .;}
43 ${RELOCATING+ _edata = .;}
44 ${RELOCATING+ ${BSS_VAR}}
45 .sbss ${RELOCATING+ .} : {
46 *(.sbss)
47 *(.scommon)
48 }
49 .bss ${RELOCATING+ .} : {
50 *(.bss)
51 *(COMMON)
52 }
53 ${RELOCATING+ end = .;}
54 ${RELOCATING+ _end = .;}
55}
56EOF
This page took 0.194076 seconds and 4 git commands to generate.