X-Git-Url: http://drtracing.org/?a=blobdiff_plain;f=ld%2Fscripttempl%2Fi386go32.sc;h=54908fe110dfa18d2dc0a9c2b983add9a4b4d17e;hb=43e56c3465048924a6b985e0e75bfe2a7ccaef0e;hp=9d2ac6753f9dc6c5c84f108dd9388233993b0a17;hpb=e98fe4f7b54cbdf29aef9287bbb1bea8801dd05a;p=deliverable%2Fbinutils-gdb.git diff --git a/ld/scripttempl/i386go32.sc b/ld/scripttempl/i386go32.sc index 9d2ac6753f..54908fe110 100644 --- a/ld/scripttempl/i386go32.sc +++ b/ld/scripttempl/i386go32.sc @@ -1,45 +1,79 @@ -# Linker script for i386 go32 COFF. -# stolen from ian -test -z "$ENTRY" && ENTRY=_start +# Linker script for i386 go32 (DJGPP) + +test -z "$ENTRY" && ENTRY=start +EXE=${CONSTRUCTING+${RELOCATING+-exe}} + # These are substituted in as variables in order to get '}' in a shell # conditional expansion. -INIT='.init : { *(.init) }' -FINI='.fini : { *(.fini) }' +CTOR='.ctor : { + *(SORT(.ctors.*)) + *(.ctor) + }' +DTOR='.dtor : { + *(SORT(.dtors.*)) + *(.dtor) + }' + cat <