diff options
author | H.J. Lu <hongjiu.lu@intel.com> | 2010-12-24 20:14:37 -0500 |
---|---|---|
committer | H.J. Lu <hjl.tools@gmail.com> | 2013-01-28 09:58:32 -0800 |
commit | 91a47ba45fc70b7fce405f05b0543296a4509aa1 (patch) | |
tree | 2b0509bc5a2f0a562187d43f1f08dae5a5b9480c /configure | |
parent | df79688ef6f6c746ecb4cc2e212780832e2f9c87 (diff) | |
download | glibc-hjl/ctor/release/2.11.tar.gz glibc-hjl/ctor/release/2.11.tar.xz glibc-hjl/ctor/release/2.11.zip |
Remove `.ctors' and `.dtors' output sections hjl/ctor/release/2.11
Conflicts: ChangeLog configure
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 10 |
1 files changed, 10 insertions, 0 deletions
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 |