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}")
22 ${RELOCATING+ENTRY (${ENTRY})}
26 ${RELOCATING+. = ${TEXT_START_ADDR};}
28 ${RELOCATING+ _ftext = . };
30 ${RELOCATING+ eprol = .};
33 ${RELOCATING+ etext = .};
34 ${RELOCATING+ _etext = .};
36 ${RELOCATING+. = ${DATA_ADDR};}
40 ${RELOCATING+ _fdata = ALIGN(16);}
43 ${CONSTRUCTING+CONSTRUCTORS}
45 ${RELOCATING+ _gp = ALIGN(16) + 0x8000;}
55 ${RELOCATING+ edata = .;}
56 ${RELOCATING+ _edata = .;}
57 ${RELOCATING+ _fbss = .;}
66 ${RELOCATING+ end = .;}
67 ${RELOCATING+ _end = .;}