config.gcc (csky-*-linux-gnu*): Force .init_array support.
authorXianmiao Qu <xianmiao_qu@c-sky.com>
Wed, 5 Dec 2018 01:34:15 +0000 (01:34 +0000)
committerXianmiao Qu <xianmiao@gcc.gnu.org>
Wed, 5 Dec 2018 01:34:15 +0000 (01:34 +0000)
2018-12-05  Xianmiao Qu  <xianmiao_qu@c-sky.com>

gcc/
* config.gcc (csky-*-linux-gnu*): Force .init_array support.

From-SVN: r266813

gcc/ChangeLog
gcc/config.gcc

index 87ce4c6380340a865785442deff8267040697cfa..a71d88fa9e1fb4980d73355b421738e015e894ec 100644 (file)
@@ -1,3 +1,7 @@
+2018-12-05  Xianmiao Qu  <xianmiao_qu@c-sky.com>
+
+       * config.gcc (csky-*-linux-gnu*): Force .init_array support.
+
 2018-12-05  Segher Boessenkool  <segher@kernel.crashing.org>
 
        * config/rs6000/rs6000.c (rs6000_function_arg): Only do the special
index cbabd21b33723a65790e2eafe8aa4979051cae48..3b2a6595080f624503ba5670fb75c8afb8d3d361 100644 (file)
@@ -1356,6 +1356,9 @@ csky-*-*)
                case ${target} in
                    csky-*-linux-gnu*)
                        tm_defines="$tm_defines DEFAULT_LIBC=LIBC_GLIBC"
+                       # Force .init_array support.  The configure script cannot always
+                       # automatically detect that GAS supports it, yet we require it.
+                       gcc_cv_initfini_array=yes
                        ;;
                    csky-*-linux-uclibc*)
                        tm_defines="$tm_defines DEFAULT_LIBC=LIBC_UCLIBC"