This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH, csky] Force .init_array suppor for GLIBC


Hi, 
	I have submitted a patch to force .init_array suppor for GLIBC


Index: gcc/ChangeLog
===================================================================
--- gcc/ChangeLog	(revision 266812)
+++ gcc/ChangeLog	(working copy)
@@ -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: gcc/config.gcc
===================================================================
--- gcc/config.gcc	(revision 266812)
+++ gcc/config.gcc	(working copy)
@@ -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"





Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]