* scripttempl/pe.sc: Add support for constructor priorities.
authorDJ Delorie <dj@redhat.com>
Wed, 16 Jan 2002 01:48:43 +0000 (01:48 +0000)
committerDJ Delorie <dj@redhat.com>
Wed, 16 Jan 2002 01:48:43 +0000 (01:48 +0000)
ld/ChangeLog
ld/scripttempl/pe.sc

index 7fac65362e5d288018150789f7a265c371430b20..6dd069db2214abd7346556ea3bbbfb1d98ec1f14 100644 (file)
@@ -1,3 +1,7 @@
+2002-01-15  DJ Delorie  <dj@redhat.com>
+
+       * scripttempl/pe.sc: Add support for constructor priorities.
+
 2002-01-07  Marek Michalkiewicz  <marekm@amelek.gda.pl>
 
        * emulparams/avr1200.sh (DATA_START): Define as 0x60.
index ce1a502f71764e203726d0045794059e4c614c1e..2f24757e422ed1057a619ab690a86819a0ef8d60 100644 (file)
@@ -54,9 +54,9 @@ SECTIONS
     *(.glue_7t)
     *(.glue_7)
     ${CONSTRUCTING+ ___CTOR_LIST__ = .; __CTOR_LIST__ = . ; 
-                       LONG (-1); *(.ctors); *(.ctor); LONG (0); }
+                       LONG (-1); *(SORT(.ctors.*)); *(.ctors); *(.ctor); LONG (0); }
     ${CONSTRUCTING+ ___DTOR_LIST__ = .; __DTOR_LIST__ = . ; 
-                       LONG (-1); *(.dtors); *(.dtor);  LONG (0); }
+                       LONG (-1); *(SORT(.dtors.*)); *(.dtors); *(.dtor);  LONG (0); }
     ${RELOCATING+ *(.fini)}
     /* ??? Why is .gcc_exc here?  */
     ${RELOCATING+ *(.gcc_exc)}