1 # Linker script for MIPS systems.
3 # These variables may be overridden by the emulation file. The
4 # defaults are appropriate for a DECstation running Ultrix.
5 test -z "$ENTRY" && ENTRY=__start
6 test -z "$TEXT_START_ADDR" && TEXT_START_ADDR="0x400000 + SIZEOF_HEADERS"
7 test -z "$DATA_ADDR" && DATA_ADDR=0x10000000
8 test -z "$BSS_VAR" && BSS_VAR=
10 OUTPUT_FORMAT("${OUTPUT_FORMAT}")
17 .text ${RELOCATING+ ${TEXT_START_ADDR}} : {
19 ${RELOCATING+ eprol = .};
22 ${RELOCATING+ etext = .};
23 ${RELOCATING+ _etext = .};
25 .rdata ${RELOCATING+ ${DATA_ADDR}} : {
28 .data ${RELOCATING+ .} : {
30 ${CONSTRUCTING+CONSTRUCTORS}
32 ${RELOCATING+ _gp = . + 0x8000;}
33 .lit8 ${RELOCATING+ .} : {
36 .lit4 ${RELOCATING+ .} : {
39 .sdata ${RELOCATING+ .} : {
42 ${RELOCATING+ edata = .;}
43 ${RELOCATING+ _edata = .;}
44 ${RELOCATING+ ${BSS_VAR}}
45 .sbss ${RELOCATING+ .} : {
49 .bss ${RELOCATING+ .} : {
53 ${RELOCATING+ end = .;}
54 ${RELOCATING+ _end = .;}