From da6fa31a22d1d125309859f7b4322e3cd6977d90 Mon Sep 17 00:00:00 2001 From: Kai Tietz Date: Fri, 18 Apr 2008 09:06:22 +0000 Subject: [PATCH] [patch]: ctor/dtor section must start at alignment of 8 for x86_64-pc-mingw32. * scripttempl/pep.sc: Align start of symbol __CTOR_LIST__. --- ld/ChangeLog | 4 ++++ ld/scripttempl/pep.sc | 1 + 2 files changed, 5 insertions(+) diff --git a/ld/ChangeLog b/ld/ChangeLog index 106161c..792ca9a 100644 --- a/ld/ChangeLog +++ b/ld/ChangeLog @@ -1,3 +1,7 @@ +2008-04-03 Kai Tietz + + * scripttempl/pep.sc: Align start of symbol __CTOR_LIST__. + 2008-04-08 Alan Modra * po/POTFILES.in: Regenerate. diff --git a/ld/scripttempl/pep.sc b/ld/scripttempl/pep.sc index e571bd3..e19026c 100644 --- a/ld/scripttempl/pep.sc +++ b/ld/scripttempl/pep.sc @@ -71,6 +71,7 @@ SECTIONS ${R_TEXT} *(.glue_7t) *(.glue_7) + ${CONSTRUCTING+. = ALIGN(8);} ${CONSTRUCTING+ ___CTOR_LIST__ = .; __CTOR_LIST__ = . ; LONG (-1); LONG (-1);*(.ctors); *(.ctor); *(SORT(.ctors.*)); LONG (0); LONG (0); } ${CONSTRUCTING+ ___DTOR_LIST__ = .; __DTOR_LIST__ = . ; -- 2.7.4