diff options
author | Alan Modra <amodra@gmail.com> | 2015-12-02 19:23:41 +1030 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2015-12-02 19:24:34 +1030 |
commit | 26e3a0c9ba4a8376fdf9f898637919d144d8b1d8 (patch) | |
tree | 0ca1b1292613c63d98adbe15a5c99704ec3649e8 /ld/configure.ac | |
parent | Fix powerpc64 segfault caused by zero r_symndx relocs. (diff) | |
download | binutils-gdb-26e3a0c9ba4a8376fdf9f898637919d144d8b1d8.tar.gz binutils-gdb-26e3a0c9ba4a8376fdf9f898637919d144d8b1d8.tar.bz2 binutils-gdb-26e3a0c9ba4a8376fdf9f898637919d144d8b1d8.zip |
Make --enable-initfini-array the default
* configure.ac (--enable-initfini-array): Remove run test. Default
to "yes". Change help string to --disable-initfini-array.
* configure: Regenerate.
Diffstat (limited to 'ld/configure.ac')
-rw-r--r-- | ld/configure.ac | 22 |
1 files changed, 5 insertions, 17 deletions
diff --git a/ld/configure.ac b/ld/configure.ac index 188172d28b4..d61beb20439 100644 --- a/ld/configure.ac +++ b/ld/configure.ac @@ -215,23 +215,11 @@ AC_SEARCH_LIBS([dlopen], [dl]) AM_CONDITIONAL([ENABLE_PLUGINS], [test x$plugins = xyes]) AC_ARG_ENABLE(initfini-array, - [ --enable-initfini-array use .init_array/.fini_array sections], - [], [ -AC_CACHE_CHECK(for .preinit_array/.init_array/.fini_array support, - gcc_cv_initfini_array, [dnl - if test "x${build}" = "x${target}" ; then - AC_RUN_IFELSE([AC_LANG_SOURCE([ -static int x = -1; -int main (void) { return x; } -int foo (void) { x = 0; } -int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;])], - [gcc_cv_initfini_array=yes], [gcc_cv_initfini_array=no], - [gcc_cv_initfini_array=no]) - else - gcc_cv_initfini_array=no - fi]) - enable_initfini_array=$gcc_cv_initfini_array -]) +[ --disable-initfini-array do not use .init_array/.fini_array sections], +[case "${enableval}" in + yes|no) ;; + *) AC_MSG_ERROR([invalid --enable-initfini-array argument]) ;; + esac], [enable_initfini_array=yes]) AC_SUBST(enable_initfini_array) if test $enable_initfini_array = yes; then AC_DEFINE(HAVE_INITFINI_ARRAY, 1, |