From 335c5610808be4ab30471250c6ed1f82cf97e009 Mon Sep 17 00:00:00 2001 From: DJ Delorie Date: Wed, 16 Jan 2002 01:48:43 +0000 Subject: * scripttempl/pe.sc: Add support for constructor priorities. --- ld/scripttempl/pe.sc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ld/scripttempl') diff --git a/ld/scripttempl/pe.sc b/ld/scripttempl/pe.sc index ce1a502..2f24757 100644 --- a/ld/scripttempl/pe.sc +++ b/ld/scripttempl/pe.sc @@ -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)} -- cgit v1.1