This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[patch] pe.sc: constructor priority



This lets g++ pass the ecos tests.  If someone else could test it to
double check, I'll apply it.

2002-01-04  DJ Delorie  <dj@redhat.com>

	* scripttempl/pe.sc: Add support for constructor priorities.

Index: scripttempl/pe.sc
===================================================================
RCS file: /cvs/src/src/ld/scripttempl/pe.sc,v
retrieving revision 1.4
diff -p -3 -r1.4 pe.sc
*** pe.sc	2000/02/24 17:53:12	1.4
--- pe.sc	2002/01/04 21:45:06
*************** SECTIONS
*** 54,62 ****
      *(.glue_7t)
      *(.glue_7)
      ${CONSTRUCTING+ ___CTOR_LIST__ = .; __CTOR_LIST__ = . ; 
! 			LONG (-1); *(.ctors); *(.ctor); LONG (0); }
      ${CONSTRUCTING+ ___DTOR_LIST__ = .; __DTOR_LIST__ = . ; 
! 			LONG (-1); *(.dtors); *(.dtor);  LONG (0); }
      ${RELOCATING+ *(.fini)}
      /* ??? Why is .gcc_exc here?  */
      ${RELOCATING+ *(.gcc_exc)}
--- 54,62 ----
      *(.glue_7t)
      *(.glue_7)
      ${CONSTRUCTING+ ___CTOR_LIST__ = .; __CTOR_LIST__ = . ; 
! 			LONG (-1); *(SORT(.ctors.*)); *(.ctors); *(.ctor); LONG (0); }
      ${CONSTRUCTING+ ___DTOR_LIST__ = .; __DTOR_LIST__ = . ; 
! 			LONG (-1); *(SORT(.dtors.*)); *(.dtors); *(.dtor);  LONG (0); }
      ${RELOCATING+ *(.fini)}
      /* ??? Why is .gcc_exc here?  */
      ${RELOCATING+ *(.gcc_exc)}


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]