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