From be3399c516f18d5763381d602ad87630fa95e332 Mon Sep 17 00:00:00 2001 From: Xianmiao Qu Date: Wed, 5 Dec 2018 01:34:15 +0000 Subject: [PATCH] config.gcc (csky-*-linux-gnu*): Force .init_array support. 2018-12-05 Xianmiao Qu gcc/ * config.gcc (csky-*-linux-gnu*): Force .init_array support. From-SVN: r266813 --- gcc/ChangeLog | 4 ++++ gcc/config.gcc | 3 +++ 2 files changed, 7 insertions(+) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 87ce4c63803..a71d88fa9e1 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2018-12-05 Xianmiao Qu + + * config.gcc (csky-*-linux-gnu*): Force .init_array support. + 2018-12-05 Segher Boessenkool * config/rs6000/rs6000.c (rs6000_function_arg): Only do the special diff --git a/gcc/config.gcc b/gcc/config.gcc index cbabd21b337..3b2a6595080 100644 --- a/gcc/config.gcc +++ b/gcc/config.gcc @@ -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" -- 2.30.2