binutils-gdb/ld/i386coff.sc-sh

30 lines
599 B
Plaintext
Raw Normal View History

# 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}
ENTRY(_start)
1992-09-12 04:43:33 +08:00
SECTIONS
{
.text ${RELOCATING+ SIZEOF_HEADERS} : {
*(.init)
1992-09-12 04:43:33 +08:00
*(.text)
*(.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
{
*(.bss)
*(COMMON)
${RELOCATING+ end = .};
1992-09-12 04:43:33 +08:00
}
}
EOF