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