1992-10-20 00:53:41 +08:00
|
|
|
# Linker script for 386 COFF. This works on SVR3.2 and SCO Unix 3.2.2.
|
|
|
|
# .data2 handles SCO, which uses two data sections.
|
|
|
|
# Ian Taylor <ian@cygnus.com>.
|
1992-09-12 04:43:33 +08:00
|
|
|
cat <<EOF
|
|
|
|
OUTPUT_FORMAT("${OUTPUT_FORMAT}")
|
|
|
|
${LIB_SEARCH_DIRS}
|
|
|
|
|
1992-10-20 00:53:41 +08:00
|
|
|
ENTRY(_start)
|
|
|
|
|
1992-09-12 04:43:33 +08:00
|
|
|
SECTIONS
|
|
|
|
{
|
1992-10-20 00:53:41 +08:00
|
|
|
.text ${RELOCATING+ SIZEOF_HEADERS} : {
|
|
|
|
*(.init)
|
1992-09-12 04:43:33 +08:00
|
|
|
*(.text)
|
1992-10-20 00:53:41 +08:00
|
|
|
*(.fini)
|
|
|
|
${RELOCATING+ etext = .};
|
|
|
|
}
|
|
|
|
.data ${RELOCATING+ 0x400000 + (. & 0xffc00fff)} : {
|
|
|
|
*(.data .data2)
|
|
|
|
${RELOCATING+ edata = .};
|
|
|
|
}
|
|
|
|
.bss ${RELOCATING+ SIZEOF(.data) + ADDR(.data)} :
|
1992-09-12 04:43:33 +08:00
|
|
|
{
|
1992-10-20 00:53:41 +08:00
|
|
|
*(.bss)
|
|
|
|
*(COMMON)
|
|
|
|
${RELOCATING+ end = .};
|
1992-09-12 04:43:33 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
EOF
|