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

2018-12-05  Xianmiao Qu  <xianmiao_qu@c-sky.com>

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

From-SVN: r266813
This commit is contained in:
Xianmiao Qu 2018-12-05 01:34:15 +00:00 committed by Xianmiao Qu
parent 9cf3cb7c25
commit be3399c516
2 changed files with 7 additions and 0 deletions

View 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

View 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"