diff options
author | H.J. Lu <hongjiu.lu@intel.com> | 2010-12-24 20:14:37 -0500 |
---|---|---|
committer | Ulrich Drepper <drepper@gmail.com> | 2010-12-24 20:14:37 -0500 |
commit | 4a531bb0b3b582cb693de9f76d2d97d970f9a5d5 (patch) | |
tree | 6f135f0145aab4c664d47d27d9aa08721a849888 /configure.in | |
parent | 07eb4b716ea5041bceb47b38ac8ab989a10b3afd (diff) | |
download | glibc-4a531bb0b3b582cb693de9f76d2d97d970f9a5d5.tar.gz glibc-4a531bb0b3b582cb693de9f76d2d97d970f9a5d5.tar.xz glibc-4a531bb0b3b582cb693de9f76d2d97d970f9a5d5.zip |
Remove `.ctors' and `.dtors' output sections
Diffstat (limited to 'configure.in')
-rw-r--r-- | configure.in | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/configure.in b/configure.in index d8cd5f1679..ad25b9b75a 100644 --- a/configure.in +++ b/configure.in @@ -1497,6 +1497,8 @@ EOF rm -f conftest*]) if test $libc_cv_initfini_array != yes; then AC_MSG_ERROR([Need linker with .init_array/.fini_array support.]) + elif AC_TRY_COMMAND([${CC-cc} -Wl,--verbose 2>&1|grep SORT_BY_INIT_PRIORITY 1>&AS_MESSAGE_LOG_FD]); then + AC_DEFINE(NO_CTORS_DTORS_SECTIONS) fi AC_CACHE_CHECK(for libunwind-support in compiler, |