summarylogtreecommitdiffstats
path: root/xtors.patch
blob: 87bab73712441a4f95682ee8319052c10fbe1f54 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
--- binutils-2.29/ld/scripttempl/i386go32.sc
+++ binutils-2.29/ld/scripttempl/i386go32.sc
@@ -13,11 +13,11 @@
 # conditional expansion.
 CTOR='.ctor : {
     *(SORT(.ctors.*))
-    *(.ctor)
+    *(.ctor) *(.ctors)
   }'
 DTOR='.dtor : {
     *(SORT(.dtors.*))
-    *(.dtor)
+    *(.dtor) *(.dtors)
   }'
 
 cat <<EOF
@@ -46,11 +46,11 @@
   .data ${RELOCATING+ ${DATA_ALIGNMENT}} : {
     ${RELOCATING+djgpp_first_ctor = . ;
     *(SORT(.ctors.*))
-    *(.ctor)
+    *(.ctor) *(.ctors)
     djgpp_last_ctor = . ;}
     ${RELOCATING+djgpp_first_dtor = . ;
     *(SORT(.dtors.*))
-    *(.dtor)
+    *(.dtor) *(.dtors)
     djgpp_last_dtor = . ;}
     *(.data)
     ${RELOCATING+*(.data.*)}