1999-02-02 22:51:16 +03:00
|
|
|
# Linker script for i386 go32 (DJGPP)
|
|
|
|
|
|
|
|
test -z "$ENTRY" && ENTRY=start
|
|
|
|
EXE=${CONSTRUCTING+${RELOCATING+-exe}}
|
1997-09-24 19:39:15 +04:00
|
|
|
cat <<EOF
|
1999-02-02 22:51:16 +03:00
|
|
|
OUTPUT_FORMAT("${OUTPUT_FORMAT}${EXE}")
|
1997-09-24 19:39:15 +04:00
|
|
|
|
|
|
|
ENTRY(${ENTRY})
|
|
|
|
|
|
|
|
SECTIONS
|
|
|
|
{
|
1999-02-02 22:51:16 +03:00
|
|
|
.text ${RELOCATING+ ${TARGET_PAGE_SIZE}+SIZEOF_HEADERS} : {
|
1997-09-24 19:39:15 +04:00
|
|
|
*(.text)
|
1999-02-02 22:51:16 +03:00
|
|
|
*(.const*)
|
|
|
|
*(.ro*)
|
|
|
|
${RELOCATING+etext = . ; _etext = .};
|
|
|
|
${RELOCATING+. = ALIGN(${SEGMENT_SIZE});}
|
1997-09-24 19:39:15 +04:00
|
|
|
}
|
1999-02-02 22:51:16 +03:00
|
|
|
.data ${RELOCATING+ ${DATA_ALIGNMENT}} : {
|
|
|
|
${RELOCATING+djgpp_first_ctor = . ;
|
|
|
|
*(.ctor)
|
|
|
|
djgpp_last_ctor = . ;}
|
|
|
|
${RELOCATING+djgpp_first_dtor = . ;
|
|
|
|
*(.dtor)
|
|
|
|
djgpp_last_dtor = . ;}
|
|
|
|
*(.data)
|
|
|
|
${RELOCATING+ edata = . ; _edata = .};
|
|
|
|
${RELOCATING+ . = ALIGN(${SEGMENT_SIZE});}
|
1997-09-24 19:39:15 +04:00
|
|
|
}
|
1999-02-02 22:51:16 +03:00
|
|
|
${CONSTRUCTING+${RELOCATING-.ctor : { *(.ctor) }}}
|
|
|
|
${CONSTRUCTING+${RELOCATING-.dtor : { *(.dtor) }}}
|
1997-09-24 19:39:15 +04:00
|
|
|
.bss ${RELOCATING+ SIZEOF(.data) + ADDR(.data)} :
|
|
|
|
{
|
|
|
|
*(.bss)
|
|
|
|
*(COMMON)
|
1999-02-02 22:51:16 +03:00
|
|
|
${RELOCATING+ end = . ; _end = .};
|
|
|
|
${RELOCATING+ . = ALIGN(${SEGMENT_SIZE});}
|
1997-09-24 19:39:15 +04:00
|
|
|
}
|
|
|
|
}
|
|
|
|
EOF
|