From 91a47ba45fc70b7fce405f05b0543296a4509aa1 Mon Sep 17 00:00:00 2001 From: "H.J. Lu" Date: Fri, 24 Dec 2010 20:14:37 -0500 Subject: Remove `.ctors' and `.dtors' output sections Conflicts: ChangeLog configure --- configure | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'configure') diff --git a/configure b/configure index 1a3f672ec7..ff4659ac2c 100755 --- a/configure +++ b/configure @@ -6414,6 +6414,16 @@ $as_echo "$libc_cv_initfini_array" >&6; } { { $as_echo "$as_me:$LINENO: error: Need linker with .init_array/.fini_array support." >&5 $as_echo "$as_me: error: Need linker with .init_array/.fini_array support." >&2;} { (exit 1); exit 1; }; } + elif { ac_try='${CC-cc} -Wl,--verbose 2>&1|grep SORT_BY_INIT_PRIORITY 1>&5' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + cat >>confdefs.h <<\_ACEOF +#define NO_CTORS_DTORS_SECTIONS 1 +_ACEOF + fi { $as_echo "$as_me:$LINENO: checking for libunwind-support in compiler" >&5 -- cgit 1.4.1