1994-05-28 00:58:05 +08:00
|
|
|
# Linker script for 386 go32
|
|
|
|
# DJ Delorie (dj@ctron.com)
|
|
|
|
|
1994-11-04 08:39:49 +08:00
|
|
|
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
|
|
|
|
{
|
1994-11-04 08:39:49 +08:00
|
|
|
.text ${RELOCATING+ 0x1000+SIZEOF_HEADERS} : {
|
1994-05-07 03:27:57 +08:00
|
|
|
*(.text)
|
1994-11-04 08:39:49 +08:00
|
|
|
${RELOCATING+ etext = . ; _etext = .};
|
|
|
|
${RELOCATING+ . = ALIGN(0x200);}
|
1994-05-07 03:27:57 +08:00
|
|
|
}
|
1994-06-23 04:11:07 +08:00
|
|
|
.data ${RELOCATING+ ${DATA_ALIGNMENT}} : {
|
1994-05-28 00:58:05 +08:00
|
|
|
${RELOCATING+ *(.ctor)}
|
|
|
|
${RELOCATING+ *(.dtor)}
|
|
|
|
*(.data)
|
1994-11-04 08:39:49 +08:00
|
|
|
${RELOCATING+ edata = . ; _edata = .};
|
|
|
|
${RELOCATING+ . = ALIGN(0x200);}
|
1994-05-07 03:27:57 +08:00
|
|
|
}
|
|
|
|
.bss ${RELOCATING+ SIZEOF(.data) + ADDR(.data)} :
|
|
|
|
{
|
|
|
|
*(.bss)
|
|
|
|
*(COMMON)
|
1994-11-04 08:39:49 +08:00
|
|
|
${RELOCATING+ end = . ; _end = .};
|
|
|
|
${RELOCATING+ . = ALIGN(0x200);}
|
1994-05-07 03:27:57 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
EOF
|