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.
5 test -z "$ENTRY" && ENTRY=__start
7 if [ -z "$EMBEDDED" ]; then
8 test -z "$TEXT_START_ADDR" && TEXT_START_ADDR="0x400000 + SIZEOF_HEADERS"
10 test -z "$TEXT_START_ADDR" && TEXT_START_ADDR="0x400000"
12 if test "x$LD_FLAG" = "xn" -o "x$LD_FLAG" = "xN"; then
15 test -z "$DATA_ADDR" && DATA_ADDR=0x10000000
18 OUTPUT_FORMAT("${OUTPUT_FORMAT}", "${BIG_OUTPUT_FORMAT}",
19 "${LITTLE_OUTPUT_FORMAT}")
26 ${RELOCATING+. = ${TEXT_START_ADDR};}
28 ${RELOCATING+ _ftext = . };
30 ${RELOCATING+ eprol = .};
32 ${RELOCATING+PROVIDE (__runtime_reloc_start = .);}
34 ${RELOCATING+PROVIDE (__runtime_reloc_stop = .);}
36 ${RELOCATING+ etext = .};
37 ${RELOCATING+ _etext = .};
39 ${RELOCATING+. = ${DATA_ADDR};}
43 ${RELOCATING+ _fdata = ALIGN(16);}
46 ${CONSTRUCTING+CONSTRUCTORS}
48 ${RELOCATING+ _gp = ALIGN(16) + 0x8000;}
58 ${RELOCATING+ edata = .;}
59 ${RELOCATING+ _edata = .;}
60 ${RELOCATING+ _fbss = .;}
69 ${RELOCATING+ end = .;}
70 ${RELOCATING+ _end = .;}