binutils-gdb/ld/scripttempl/go32coff.sc

34 lines
704 B
Python
Raw Normal View History

# Linker script for 386 go32
# DJ Delorie (dj@ctron.com)
test -z "$ENTRY" && ENTRY=start
1994-05-07 03:27:57 +08:00
cat <<EOF
OUTPUT_FORMAT("${OUTPUT_FORMAT}")
${LIB_SEARCH_DIRS}
ENTRY(${ENTRY})
SECTIONS
{
.text ${RELOCATING+ 0x1000+SIZEOF_HEADERS} : {
1994-05-07 03:27:57 +08:00
*(.text)
${RELOCATING+ etext = . ; _etext = .};
${RELOCATING+ . = ALIGN(0x200);}
1994-05-07 03:27:57 +08:00
}
.data ${RELOCATING+ ${DATA_ALIGNMENT}} : {
${RELOCATING+ *(.ctor)}
${RELOCATING+ *(.dtor)}
*(.data)
${RELOCATING+ edata = . ; _edata = .};
${RELOCATING+ . = ALIGN(0x200);}
1994-05-07 03:27:57 +08:00
}
.bss ${RELOCATING+ SIZEOF(.data) + ADDR(.data)} :
{
*(.bss)
*(COMMON)
${RELOCATING+ end = . ; _end = .};
${RELOCATING+ . = ALIGN(0x200);}
1994-05-07 03:27:57 +08:00
}
}
EOF