1 # Linker script for i386 go32 (DJGPP)
3 test -z "$ENTRY" && ENTRY=start
4 EXE=${CONSTRUCTING+${RELOCATING+-exe}}
6 # These are substituted in as variables in order to get '}' in a shell
7 # conditional expansion.
18 OUTPUT_FORMAT("${OUTPUT_FORMAT}${EXE}")
24 .text ${RELOCATING+ ${TARGET_PAGE_SIZE}+SIZEOF_HEADERS} : {
26 ${RELOCATING+*(.gnu.linkonce.t*)}
29 ${RELOCATING+*(.gnu.linkonce.r*)}
30 ${RELOCATING+etext = . ; _etext = . ;}
31 ${RELOCATING+. = ALIGN(${SEGMENT_SIZE});}
33 .data ${RELOCATING+ ${DATA_ALIGNMENT}} : {
34 ${RELOCATING+djgpp_first_ctor = . ;
37 djgpp_last_ctor = . ;}
38 ${RELOCATING+djgpp_first_dtor = . ;
41 djgpp_last_dtor = . ;}
44 ${RELOCATING+*(.gcc_exc*)}
45 ${RELOCATING+___EH_FRAME_BEGIN__ = . ;}
46 ${RELOCATING+*(.eh_fram*)}
47 ${RELOCATING+___EH_FRAME_END__ = . ;}
48 ${RELOCATING+LONG(0);}
50 ${RELOCATING+*(.gnu.linkonce.d*)}
51 ${RELOCATING+edata = . ; _edata = . ;}
52 ${RELOCATING+. = ALIGN(${SEGMENT_SIZE});}
54 ${CONSTRUCTING+${RELOCATING-$CTOR}}
55 ${CONSTRUCTING+${RELOCATING-$DTOR}}
56 .bss ${RELOCATING+ SIZEOF(.data) + ADDR(.data)} :
60 ${RELOCATING+ end = . ; _end = . ;}
61 ${RELOCATING+ . = ALIGN(${SEGMENT_SIZE});}