Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/external/gpl3/binutils/dist/ld Remove initfini array rest (r...
details: https://anonhg.NetBSD.org/src/rev/6d884ec1e3c7
branches: trunk
changeset: 446991:6d884ec1e3c7
user: christos <christos%NetBSD.org@localhost>
date: Thu Dec 27 14:53:05 2018 +0000
description:
Remove initfini array rest (restore original FSF version).
diffstat:
external/gpl3/binutils/dist/ld/configure.ac | 22 +++++-----------------
1 files changed, 5 insertions(+), 17 deletions(-)
diffs (32 lines):
diff -r 6bf4c11ef18f -r 6d884ec1e3c7 external/gpl3/binutils/dist/ld/configure.ac
--- a/external/gpl3/binutils/dist/ld/configure.ac Thu Dec 27 14:24:11 2018 +0000
+++ b/external/gpl3/binutils/dist/ld/configure.ac Thu Dec 27 14:53:05 2018 +0000
@@ -268,23 +268,11 @@
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,
Home |
Main Index |
Thread Index |
Old Index