1993-03-04 21:49:26 +01:00
|
|
|
# Linker script for MIPS systems.
|
1993-01-22 23:30:52 +01:00
|
|
|
# Ian Lance Taylor <ian@cygnus.com>.
|
1993-03-04 21:49:26 +01:00
|
|
|
# These variables may be overridden by the emulation file. The
|
|
|
|
# defaults are appropriate for a DECstation running Ultrix.
|
|
|
|
test -z "$ENTRY" && ENTRY=__start
|
|
|
|
test -z "$TEXT_START_ADDR" && TEXT_START_ADDR="0x400000 + SIZEOF_HEADERS"
|
|
|
|
test -z "$DATA_ADDR" && DATA_ADDR=0x10000000
|
|
|
|
test -z "$BSS_VAR" && BSS_VAR=
|
1993-01-22 23:30:52 +01:00
|
|
|
cat <<EOF
|
|
|
|
OUTPUT_FORMAT("${OUTPUT_FORMAT}")
|
|
|
|
${LIB_SEARCH_DIRS}
|
|
|
|
|
1993-03-04 21:49:26 +01:00
|
|
|
ENTRY(${ENTRY})
|
1993-01-22 23:30:52 +01:00
|
|
|
|
|
|
|
SECTIONS
|
|
|
|
{
|
1993-03-04 21:49:26 +01:00
|
|
|
.text ${RELOCATING+ ${TEXT_START_ADDR}} : {
|
1993-01-22 23:30:52 +01:00
|
|
|
*(.init)
|
|
|
|
${RELOCATING+ eprol = .};
|
|
|
|
*(.text)
|
|
|
|
*(.fini)
|
|
|
|
${RELOCATING+ etext = .};
|
|
|
|
}
|
1993-03-04 21:49:26 +01:00
|
|
|
.rdata ${RELOCATING+ ${DATA_ADDR}} : {
|
1993-01-22 23:30:52 +01:00
|
|
|
*(.rdata)
|
|
|
|
}
|
|
|
|
.data ${RELOCATING+ .} : {
|
|
|
|
*(.data)
|
|
|
|
}
|
1993-01-26 20:51:41 +01:00
|
|
|
${RELOCATING+ _gp = . + 0x8000;}
|
1993-01-22 23:30:52 +01:00
|
|
|
.lit8 ${RELOCATING+ .} : {
|
|
|
|
*(.lit8)
|
|
|
|
}
|
|
|
|
.lit4 ${RELOCATING+ .} : {
|
|
|
|
*(.lit4)
|
|
|
|
}
|
|
|
|
.sdata ${RELOCATING+ .} : {
|
|
|
|
*(.sdata)
|
|
|
|
}
|
1993-01-26 20:51:41 +01:00
|
|
|
${RELOCATING+ edata = .;}
|
1993-03-04 21:49:26 +01:00
|
|
|
${BSS_VAR}
|
1993-01-22 23:30:52 +01:00
|
|
|
.sbss ${RELOCATING+ .} : {
|
|
|
|
*(.sbss)
|
1993-02-02 20:37:55 +01:00
|
|
|
*(.scommon)
|
1993-01-22 23:30:52 +01:00
|
|
|
}
|
|
|
|
.bss ${RELOCATING+ .} : {
|
|
|
|
*(.bss)
|
|
|
|
*(COMMON)
|
|
|
|
}
|
1993-01-26 20:51:41 +01:00
|
|
|
${RELOCATING+ end = .;}
|
1993-01-22 23:30:52 +01:00
|
|
|
}
|
|
|
|
EOF
|